RenderingConnection.CreateComponent(ObjectType, Entity) Méthode

Définition

Crée un composant.

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

Paramètres

componentType
ObjectType

Type de composant à créer.

owner
Entity

Entité propriétaire pour le composant.

Retours

Retourne null si le client a été déconnecté ou si l’entité propriétaire a déjà un composant de ce type.

Remarques

Une AlreadyExists erreur se produit si l’entité a déjà un composant du type demandé.

S’applique à

Voir aussi