Compartilhar via


SharedPropertyGroup.CreateProperty(String, Boolean) Método

Definição

Cria uma propriedade com o nome determinado.

public:
 System::EnterpriseServices::SharedProperty ^ CreateProperty(System::String ^ name, [Runtime::InteropServices::Out] bool % fExists);
public System.EnterpriseServices.SharedProperty CreateProperty (string name, out bool fExists);
member this.CreateProperty : string * bool -> System.EnterpriseServices.SharedProperty
Public Function CreateProperty (name As String, ByRef fExists As Boolean) As SharedProperty

Parâmetros

name
String

O nome da nova propriedade.

fExists
Boolean

Determina se a propriedade existe. Definido como true no retorno caso a propriedade exista.

Retornos

O SharedProperty solicitado.

Exemplos

O exemplo de código a seguir mostra como usar o CreateProperty método para criar uma propriedade compartilhada.

// Create a shared property group.
SharedPropertyGroup^ group =
   groupManager->CreatePropertyGroup( "Receipts",  lockMode,  releaseMode,  groupExists );

// Create a shared property.
SharedProperty^ ReceiptNumber;
ReceiptNumber = group->CreateProperty( "ReceiptNumber",  propertyExists );
// Create a shared property group.
SharedPropertyGroup group = groupManager.CreatePropertyGroup("Receipts",
                           ref lockMode, ref releaseMode, out groupExists);
// Create a shared property.
SharedProperty ReceiptNumber;
ReceiptNumber = group.CreateProperty("ReceiptNumber",out propertyExists);
' Create a shared property group.
Dim group As SharedPropertyGroup = groupManager.CreatePropertyGroup("Receipts", lockMode, releaseMode, groupExists)
' Create a shared property.
Dim ReceiptNumber As SharedProperty
ReceiptNumber = group.CreateProperty("ReceiptNumber", propertyExists)

Aplica-se a