Sdílet prostřednictvím


RenderingConnection.CreateComponent(ObjectType, Entity) Metoda

Definice

Vytvoří novou komponentu.

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 komponenty, který chcete vytvořit.

owner
Entity

Entita vlastníka komponenty

Návraty

Vrátí null , pokud byl klient odpojen nebo entita vlastníka již má komponentu tohoto typu.

Poznámky

Pokud AlreadyExists entita již obsahuje součást požadovaného typu, dojde k chybě.

Platí pro

Viz také