Field.TypeAsString property

Gets or sets a value that specifies the type of the field.

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

Syntax

'Declaration
Public Property TypeAsString As String
    Get
    Set
'Usage
Dim instance As Field
Dim value As String

value = instance.TypeAsString

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

Property value

Type: System.String
Returns a String instance representing the type of the field.

Exceptions

Exception Condition
[Microsoft.SharePoint.SPException]

The server does not allow properties of the field to be changed. Error code: -2146232832.

[System.NotSupportedException]

Value is changed, and the list is an external list. Error code: -1.

Remarks

It must not be a null reference (Nothing in Visual Basic). It must not be empty.

See also

Reference

Field class

Field members

Microsoft.SharePoint.Client namespace