Edit

Share via


ObjectItemCollection.TryGetClrType Method

Definition

Returns a CLR type.

Overloads

TryGetClrType(EnumType, Type)

Returns the underlying CLR type for the specified OSpace enum type argument.

TryGetClrType(StructuralType, Type)

TryGetClrType(EnumType, Type)

Returns the underlying CLR type for the specified OSpace enum type argument.

public:
 bool TryGetClrType(System::Data::Metadata::Edm::EnumType ^ objectSpaceType, [Runtime::InteropServices::Out] Type ^ % clrType);
public bool TryGetClrType (System.Data.Metadata.Edm.EnumType objectSpaceType, out Type clrType);
member this.TryGetClrType : System.Data.Metadata.Edm.EnumType * Type -> 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

When this method returns, contains the CLR enum type of the OSpace argument.

Returns

true if the CLR type can be obtained; otherwise, false. If the DataSpace property of the parameter is not OSpace, the method returns false and sets the clrType parameter to null.

Applies to

TryGetClrType(StructuralType, Type)

public:
 bool TryGetClrType(System::Data::Metadata::Edm::StructuralType ^ objectSpaceType, [Runtime::InteropServices::Out] Type ^ % clrType);
public bool TryGetClrType (System.Data.Metadata.Edm.StructuralType objectSpaceType, out Type clrType);
member this.TryGetClrType : System.Data.Metadata.Edm.StructuralType * Type -> 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

When this method returns, contains the CLR enum type of the OSpace argument.

Returns

true if the CLR type can be obtained; otherwise, false. If the DataSpace property of the parameter is not OSpace, the method returns false and sets the clrType parameter to null.

Applies to