This document is archived and information here might be outdated. Recommended version. |
Returns member valuefor a given name as a VARIANT of the requested type. If member does not exist, returns VARIANT_FALSE in 'success' parameter.
[Visual Basic .NET] Public Function TryGetValueAsVariant ( _ ByVal Name As String, _ ByVal variantType As Integer, _ ByRef Value As Object _ ) As Boolean
[C#] public bool TryGetValueAsVariant ( string Name, int variantType, ref object Value );
[C++]
HRESULT TryGetValueAsVariant(
BSTR Name,
long variantType,
Variant* Value
);
[C++]
Parameters Name [in]
Name is a parameter of type BSTR variantType [in]
variantType is a parameter of type long Value [out]
Value is a parameter of type VARIANT*