SharedPropertyGroup.CreateProperty(String, Boolean) Method

Definition

Creates a property with the given name.

C#
public System.EnterpriseServices.SharedProperty CreateProperty(string name, out bool fExists);

Parameters

name
String

The name of the new property.

fExists
Boolean

Determines whether the property exists. Set to true on return if the property exists.

Returns

The requested SharedProperty.

Examples

The following code example shows how to use the CreateProperty method to create a shared property.

C#
// 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);

Applies to

Proizvod Verzije
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1