MetadataObject.Name Property

Gets or sets the name of the object.

Namespace:  Microsoft.SharePoint.BusinessData.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property Name As String
    Get
    Set
'Usage
Dim instance As MetadataObject
Dim value As String

value = instance.Name

instance.Name = value
public string Name { get; set; }

Property Value

Type: System.String

The name of the object.

Remarks

This property throws an ArgumentNullException and ArgumentException exception.

Examples

The following example illustrates the use of this property on an Entity object, which is a MetadaObject type.

Code Snippet: Add a Localized Name to a MetadataObject Using the Administration Object Model

See Also

Reference

MetadataObject Class

MetadataObject Members

Microsoft.SharePoint.BusinessData.Administration Namespace