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.

C#
public bool TryGetEdmSpaceType(System.Data.Metadata.Edm.StructuralType objectSpaceType, out System.Data.Metadata.Edm.StructuralType edmSpaceType);

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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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.

C#
public bool TryGetEdmSpaceType(System.Data.Metadata.Edm.EnumType objectSpaceType, out System.Data.Metadata.Edm.EnumType edmSpaceType);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1