共用方式為


DataAttribute.Name Property

Gets or sets the internal name of the list field (column) or list property.

Namespace:  Microsoft.SharePoint.Linq
Assembly:  Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)

Syntax

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

value = instance.Name

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

Property Value

Type: System.String
A String that identifies the name of the field or property.

Remarks

The Name property only needs to be specified when the property to which the attribute is applied is not the same as the internal name of the field.

See Also

Reference

DataAttribute Class

DataAttribute Members

Microsoft.SharePoint.Linq Namespace