Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the type of the field.
Namespace: Microsoft.SharePoint.Linq
Assembly: Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)
Syntax
'Declaration
Public Property FieldType As String
Get
Set
'Usage
Dim instance As ColumnAttribute
Dim value As String
value = instance.FieldType
instance.FieldType = value
public string FieldType { get; set; }
Property Value
Type: System.String
A case-sensitive String that represents the type of the data in the field.
Remarks
The value of this property is always a case-sensitive string representation of the name of a class derived from SPField.
Examples
The following is an example of FieldType in use:
[Column(Name="MemberID", Storage="_memberID", Required=true, FieldType="Number")]
[DataMember()]
public System.Nullable<double> MemberID {
get {
return this._memberID;
}
set {
if ((this._memberID != value)) {
this.OnPropertyChanging("MemberID", this._memberID);
this._memberID = value;
this.OnPropertyChanged("MemberID");
}
}
}
// Other members omitted for readability.
}