Share via


RenderingConnection.CreateComponent(ObjectType, Entity) Methode

Definition

Erstellt eine neue Komponente.

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

Parameter

componentType
ObjectType

Zu erstellende Komponententyp.

owner
Entity

Besitzerentität für die Komponente.

Gibt zurück

Gibt zurück null , wenn der Client getrennt wurde oder die Besitzerentität bereits über eine Komponente dieses Typs verfügt.

Hinweise

Ein AlreadyExists Fehler tritt auf, wenn die Entität bereits über eine Komponente des angeforderten Typs verfügt.

Gilt für:

Weitere Informationen