Share via


MDLObject.GetComponent Method

Definition

Overloads

Name Description
GetComponent(Protocol)

Gets this object's component that conforms to protocol.

GetComponent(Type)

Gets this object's component that matches the supplied type.

GetComponent(Protocol)

Gets this object's component that conforms to protocol.

[Foundation.Export("componentConformingToProtocol:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual ModelIO.IMDLComponent? GetComponent(ObjCRuntime.Protocol protocol);
[<Foundation.Export("componentConformingToProtocol:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetComponent : ObjCRuntime.Protocol -> ModelIO.IMDLComponent
override this.GetComponent : ObjCRuntime.Protocol -> ModelIO.IMDLComponent

Parameters

protocol
Protocol

The protocol for which to get the component.

Returns

Attributes

Applies to

GetComponent(Type)

Gets this object's component that matches the supplied type.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public ModelIO.IMDLComponent? GetComponent(Type type);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.GetComponent : Type -> ModelIO.IMDLComponent

Parameters

type
Type

The type to filter by.

Returns

Attributes

Applies to