MetadataWorkspace.TryGetEdmSpaceType Method

Definition

Returns a StructuralType or EnumType object via the out parameter edmSpaceType that represents the EdmType that matches the type supplied by the parameter objectSpaceType.

Overloads

TryGetEdmSpaceType(StructuralType, StructuralType)

Returns a StructuralType object via the out parameter edmSpaceType that represents the EdmType that matches the type supplied by the parameter objectSpaceType.

TryGetEdmSpaceType(EnumType, EnumType)

Returns a EnumType object via the out parameter edmSpaceType that represents the EdmType that matches the type supplied by the parameter objectSpaceType.

TryGetEdmSpaceType(StructuralType, StructuralType)

Returns a StructuralType object via the out parameter edmSpaceType that represents the EdmType that matches the type supplied by the parameter objectSpaceType.

public:
 bool TryGetEdmSpaceType(System::Data::Metadata::Edm::StructuralType ^ objectSpaceType, [Runtime::InteropServices::Out] System::Data::Metadata::Edm::StructuralType ^ % edmSpaceType);
public bool TryGetEdmSpaceType (System.Data.Metadata.Edm.StructuralType objectSpaceType, out System.Data.Metadata.Edm.StructuralType edmSpaceType);
member this.TryGetEdmSpaceType : System.Data.Metadata.Edm.StructuralType * StructuralType -> bool
Public Function TryGetEdmSpaceType (objectSpaceType As StructuralType, ByRef edmSpaceType As StructuralType) As Boolean

Parameters

objectSpaceType
StructuralType

A StructuralType object that represents the object space type.

edmSpaceType
StructuralType

When this method returns, contains a StructuralType object that represents the EdmType. This parameter is passed uninitialized.

Returns

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

TryGetEdmSpaceType(EnumType, EnumType)

Returns a EnumType object via the out parameter edmSpaceType that represents the EdmType that matches the type supplied by the parameter objectSpaceType.

public:
 bool TryGetEdmSpaceType(System::Data::Metadata::Edm::EnumType ^ objectSpaceType, [Runtime::InteropServices::Out] System::Data::Metadata::Edm::EnumType ^ % edmSpaceType);
public bool TryGetEdmSpaceType (System.Data.Metadata.Edm.EnumType objectSpaceType, out System.Data.Metadata.Edm.EnumType edmSpaceType);
member this.TryGetEdmSpaceType : System.Data.Metadata.Edm.EnumType * EnumType -> bool
Public Function TryGetEdmSpaceType (objectSpaceType As EnumType, ByRef edmSpaceType As EnumType) As Boolean

Parameters

objectSpaceType
EnumType

A EnumType object that represents the object space type.

edmSpaceType
EnumType

When this method returns, contains a EnumType object that represents the EdmType. This parameter is passed uninitialized.

Returns

true on success, false on failure.

Applies to