Compartilhar via


SPField.TypeAsString Property

Gets the type of the field as a string value.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableConstraintAttribute(FixedId := "2", Type := ClientCallableConstraintType.NotNull)> _
<ClientCallableConstraintAttribute(FixedId := "1", Type := ClientCallableConstraintType.NotEmpty)> _
<ClientCallableAttribute> _
Public Property TypeAsString As String
    Get
    Set
'Usage
Dim instance As SPField
Dim value As String

value = instance.TypeAsString

instance.TypeAsString = value
[ClientCallableConstraintAttribute(FixedId = "2", Type = ClientCallableConstraintType.NotNull)]
[ClientCallableConstraintAttribute(FixedId = "1", Type = ClientCallableConstraintType.NotEmpty)]
[ClientCallableAttribute]
public string TypeAsString { get; set; }

Property Value

Type: System.String
A string that represents the field type.

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace