KnownValueTypes.TryGetValueType 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
TryGetValueType(Object, IValueType) |
Resolves value type from value. |
TryGetValueType(Type, IValueType) |
Resolves model value type from a runtime type. |
TryGetValueType(Object, IValueType)
Resolves value type from value.
public static bool TryGetValueType (object value, out Microsoft.VisualStudio.ProjectSystem.Query.ValueTypes.IValueType? valueType);
static member TryGetValueType : obj * IValueType -> bool
Public Shared Function TryGetValueType (value As Object, ByRef valueType As IValueType) As Boolean
Parameters
- value
- Object
The value.
- valueType
- IValueType
The result
Returns
True, if it can be resolved.
Applies to
TryGetValueType(Type, IValueType)
Resolves model value type from a runtime type.
public static bool TryGetValueType (Type runtimeType, out Microsoft.VisualStudio.ProjectSystem.Query.ValueTypes.IValueType? valueType);
static member TryGetValueType : Type * IValueType -> bool
Public Shared Function TryGetValueType (runtimeType As Type, ByRef valueType As IValueType) As Boolean
Parameters
- runtimeType
- Type
A runtime type.
- valueType
- IValueType
The result
Returns
True, if it can be resolved.