DataObject.Name Property

Definition

Gets the name of the associated DataSourceObject object.

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

Property Value

Examples

In the following example, the Name property of the DataSourceObject object is used to display the name of the DataObject object in a message box:

string strName = thisXDocument.DataObjects[0].<span class="label">Name</span>;
thisXDocument.UI.Alert("Data Object name: " + strName);

Remarks

The name of the DataObject object is the same as the name of the secondary data source that it represents. The name of the DataObject object can also be used as the argument to the Item[Object] property.

Important: This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Applies to