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.
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)
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public virtual bool TryGetObjectSpaceType (System.Data.Entity.Core.Metadata.Edm.EnumType edmSpaceType, out System.Data.Entity.Core.Metadata.Edm.EnumType objectSpaceType);
abstract member TryGetObjectSpaceType : System.Data.Entity.Core.Metadata.Edm.EnumType * -> bool
override this.TryGetObjectSpaceType : System.Data.Entity.Core.Metadata.Edm.EnumType * -> bool
Public Overridable 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.
- Attributes
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 .
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public virtual bool TryGetObjectSpaceType (System.Data.Entity.Core.Metadata.Edm.StructuralType edmSpaceType, out System.Data.Entity.Core.Metadata.Edm.StructuralType objectSpaceType);
abstract member TryGetObjectSpaceType : System.Data.Entity.Core.Metadata.Edm.StructuralType * -> bool
override this.TryGetObjectSpaceType : System.Data.Entity.Core.Metadata.Edm.StructuralType * -> bool
Public Overridable 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.
- Attributes
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for