Bewerken

Delen via


MDLObject.SetComponent Method

Definition

Overloads

SetComponent(IMDLComponent, Protocol)

Associates component with this MDLOBject for the specified protocol.

SetComponent(IMDLComponent, Type)

Makes component the object to provide for the specified type.

SetComponent(IMDLComponent, Protocol)

Associates component with this MDLOBject for the specified protocol.

[Foundation.Export("setComponent:forProtocol:")]
public virtual void SetComponent (ModelIO.IMDLComponent component, ObjCRuntime.Protocol protocol);
abstract member SetComponent : ModelIO.IMDLComponent * ObjCRuntime.Protocol -> unit
override this.SetComponent : ModelIO.IMDLComponent * ObjCRuntime.Protocol -> unit

Parameters

component
IMDLComponent

The component to associate with a protocol.

protocol
Protocol

The protocol to associate with the component.

Attributes

Applies to

SetComponent(IMDLComponent, Type)

Makes component the object to provide for the specified type.

public void SetComponent (ModelIO.IMDLComponent component, Type type);
member this.SetComponent : ModelIO.IMDLComponent * Type -> unit

Parameters

component
IMDLComponent

The component to associate with a type.

type
Type

The type to associate with the component.

Applies to