ObjectItemCollection.TryGetClrType 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
TryGetClrType(EnumType, Type) |
Returns the underlying CLR type for the specified OSpace enum type argument. If the DataSpace of the parameter is not OSpace, the method returns false and sets the out parameter to null. |
TryGetClrType(StructuralType, Type) |
Returns a CLR type corresponding to the StructuralType supplied by the objectSpaceType parameter. |
TryGetClrType(EnumType, Type)
Returns the underlying CLR type for the specified OSpace enum type argument. If the DataSpace of the parameter is not OSpace, the method returns false and sets the out parameter to null.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public bool TryGetClrType (System.Data.Entity.Core.Metadata.Edm.EnumType objectSpaceType, out Type clrType);
member this.TryGetClrType : System.Data.Entity.Core.Metadata.Edm.EnumType * -> bool
Public Function TryGetClrType (objectSpaceType As EnumType, ByRef clrType As Type) As Boolean
Parameters
- objectSpaceType
- EnumType
The OSpace enum type to look up
- clrType
- Type
The CLR enum type of the OSpace argument
Returns
true on success, false on failure
- Attributes
Applies to
TryGetClrType(StructuralType, Type)
Returns a CLR type corresponding to the StructuralType supplied by the objectSpaceType parameter.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public bool TryGetClrType (System.Data.Entity.Core.Metadata.Edm.StructuralType objectSpaceType, out Type clrType);
member this.TryGetClrType : System.Data.Entity.Core.Metadata.Edm.StructuralType * -> bool
Public Function TryGetClrType (objectSpaceType As StructuralType, ByRef clrType As Type) As Boolean
Parameters
- objectSpaceType
- StructuralType
A StructuralType that represents the object space type.
- clrType
- Type
The CLR type.
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