RenderingConnection.CreateComponent(ObjectType, Entity) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Crea un nuovo componente.
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
Parametri
- componentType
- ObjectType
Tipo di componente da creare.
- owner
- Entity
Entità proprietario per il componente.
Restituisce
Restituisce null
se il client è stato disconnesso o l'entità proprietario ha già un componente di questo tipo.
Commenti
Si verifica un AlreadyExists errore, se l'entità ha già un componente del tipo richiesto.