RenderingConnection.CreateComponent(ObjectType, Entity) Method

Definition

Creates a new component.

public:
 Microsoft::Azure::RemoteRendering::ComponentBase ^ CreateComponent(Microsoft::Azure::RemoteRendering::ObjectType componentType, Microsoft::Azure::RemoteRendering::Entity ^ owner);
public Microsoft.Azure.RemoteRendering.ComponentBase CreateComponent (Microsoft.Azure.RemoteRendering.ObjectType componentType, Microsoft.Azure.RemoteRendering.Entity owner);
member this.CreateComponent : Microsoft.Azure.RemoteRendering.ObjectType * Microsoft.Azure.RemoteRendering.Entity -> Microsoft.Azure.RemoteRendering.ComponentBase
Public Function CreateComponent (componentType As ObjectType, owner As Entity) As ComponentBase

Parameters

componentType
ObjectType

Component type to create.

owner
Entity

Owner entity for the component.

Returns

Returns null if the client has been disconnected or the owner entity already has a component of this type.

Remarks

A AlreadyExists error occurs, if the entity already has a component of the requested type.

Applies to

See also