Aracılığıyla paylaş


RenderingConnection.CreateComponent(ObjectType, Entity) Yöntem

Tanım

Yeni bir bileşen oluşturur.

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

Parametreler

componentType
ObjectType

Oluşturulacak bileşen türü.

owner
Entity

Bileşen için sahip varlığı.

Döndürülenler

İstemcinin bağlantısı kesilmişse veya sahip varlığının zaten bu türde bir bileşeni varsa döndürür null .

Açıklamalar

AlreadyExists Varlığın istenen türde bir bileşeni zaten varsa bir hata oluşur.

Şunlara uygulanır

Ayrıca bkz.