MetadataWorkspace.TryGetObjectSpaceType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
TryGetObjectSpaceType(StructuralType, StructuralType) |
Returns a StructuralType object via the out parameter |
TryGetObjectSpaceType(EnumType, EnumType)
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
- 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
.