Share via


EdmTypeSemantics.AsString(IEdmTypeReference) Method

Definition

If this reference is of a string type, this will return a valid string type reference to the type definition. Otherwise, it will return a bad string type reference.

public static Microsoft.OData.Edm.IEdmStringTypeReference AsString (this Microsoft.OData.Edm.IEdmTypeReference type);
static member AsString : Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.Edm.IEdmStringTypeReference
<Extension()>
Public Function AsString (type As IEdmTypeReference) As IEdmStringTypeReference

Parameters

type
IEdmTypeReference

Reference to the calling object.

Returns

A valid string type reference if the definition of the reference is of a string type. Otherwise a bad string type reference.

Applies to