RenderingConnection.CreateComponent(ObjectType, Entity) Metoda

Definicja

Tworzy nowy składnik.

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

Parametry

componentType
ObjectType

Typ składnika do utworzenia.

owner
Entity

Jednostka właściciela składnika.

Zwraca

Zwraca wartość null , jeśli klient został odłączony lub jednostka właściciela ma już składnik tego typu.

Uwagi

Występuje AlreadyExists błąd, jeśli jednostka ma już składnik żądanego typu.

Dotyczy

Zobacz też