Share via


ObjectItemCollection.TryGetClrType Method

Definition

Overloads

TryGetClrType(EnumType, Type)

Returns the underlying CLR type for the specified OSpace enum type argument. If the DataSpace of the parameter is not OSpace, the method returns false and sets the out parameter to null.

TryGetClrType(StructuralType, Type)

Returns a CLR type corresponding to the StructuralType supplied by the objectSpaceType parameter.

TryGetClrType(EnumType, Type)

Returns the underlying CLR type for the specified OSpace enum type argument. If the DataSpace of the parameter is not OSpace, the method returns false and sets the out parameter to null.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public bool TryGetClrType (System.Data.Entity.Core.Metadata.Edm.EnumType objectSpaceType, out Type clrType);
member this.TryGetClrType : System.Data.Entity.Core.Metadata.Edm.EnumType *  -> bool
Public Function TryGetClrType (objectSpaceType As EnumType, ByRef clrType As Type) As Boolean

Parameters

objectSpaceType
EnumType

The OSpace enum type to look up

clrType
Type

The CLR enum type of the OSpace argument

Returns

true on success, false on failure

Attributes

Applies to

TryGetClrType(StructuralType, Type)

Returns a CLR type corresponding to the StructuralType supplied by the objectSpaceType parameter.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public bool TryGetClrType (System.Data.Entity.Core.Metadata.Edm.StructuralType objectSpaceType, out Type clrType);
member this.TryGetClrType : System.Data.Entity.Core.Metadata.Edm.StructuralType *  -> bool
Public Function TryGetClrType (objectSpaceType As StructuralType, ByRef clrType As Type) As Boolean

Parameters

objectSpaceType
StructuralType

A StructuralType that represents the object space type.

clrType
Type

The CLR type.

Returns

true if there is a type that matches the search criteria; otherwise, false.

Attributes

Applies to