MarkLogic XCC/.Net Library |

# ItemType.ForType Method

Given an XDM type name string ("xs:string", "xs:time", "text()", etc) return the corresponding ItemType instance. If the string does not match any of the known types, null is returned.

[Visual Basic]
Public Shared Function ForType( _
ByVal schemaTypeName As String _
) As ItemType
[C#]
public static ItemType ForType(
string schemaTypeName
);

#### Parameters

schemaTypeName
  An XML Schema type name, such as "xs:integer".

#### Return Value

The corresponding concrete subtype of ItemType, such as XSInteger.

#### See Also

ItemType Class | Marklogic.Xcc.Types Namespace