MetadataWorkspace.TryGetObjectSpaceType Method

 

This method returns the OSpace enumeration type mapped to the specified Edm Space Type.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodTryGetObjectSpaceType(EnumType, EnumType)

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

System_CAPS_pubmethodTryGetObjectSpaceType(StructuralType, StructuralType)

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


MetadataWorkspace.TryGetObjectSpaceType Method (EnumType, EnumType)

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

[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public virtual bool TryGetObjectSpaceType(
	EnumType edmSpaceType,
	out EnumType objectSpaceType
)

Parameters

edmSpaceType
Type: System.Data.Entity.Core.Metadata.Edm.EnumType

A EnumType object that represents the EdmType .

objectSpaceType
Type: System.Data.Entity.Core.Metadata.Edm.EnumType

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

Return Value

Type: System.Boolean

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


MetadataWorkspace.TryGetObjectSpaceType Method (StructuralType, StructuralType)

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

[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public virtual bool TryGetObjectSpaceType(
	StructuralType edmSpaceType,
	out StructuralType objectSpaceType
)

Parameters

edmSpaceType
Type: System.Data.Entity.Core.Metadata.Edm.StructuralType

A StructuralType object that represents the EdmType .

objectSpaceType
Type: System.Data.Entity.Core.Metadata.Edm.StructuralType

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

Return Value

Type: System.Boolean

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