ערוך

שתף באמצעות


MetadataWorkspace.TryGetObjectSpaceType Method

Definition

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

Overloads

TryGetObjectSpaceType(EnumType, EnumType)

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

TryGetObjectSpaceType(StructuralType, StructuralType)

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

TryGetObjectSpaceType(EnumType, EnumType)

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

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

Parameters

edmSpaceType
EnumType

A EnumType object that represents the EdmType.

objectSpaceType
EnumType

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

Returns

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

Applies to

TryGetObjectSpaceType(StructuralType, StructuralType)

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

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

Parameters

edmSpaceType
StructuralType

A StructuralType object that represents the EdmType.

objectSpaceType
StructuralType

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

Returns

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

Applies to