TypeConverterTryConvertDataT Method (Object, T) |
Tries to convert the object to the specified type
Namespace: Lithnet.MetadirectoryServicesAssembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax public static bool TryConvertData<T>(
Object obj,
out T value
)
Public Shared Function TryConvertData(Of T) (
obj As Object,
<OutAttribute> ByRef value As T
) As Boolean
public:
generic<typename T>
static bool TryConvertData(
Object^ obj,
[OutAttribute] T% value
)
Parameters
- obj
- Type: SystemObject
The object to convert - value
- Type: T
The converted value
Type Parameters
- T
- The data type to convert the object to
Return Value
Type:
BooleanA value indicating if the conversion was successful
See Also