The value of the specified property.
[Visual Basic 6.0] Function GetProperty(
ByVal Name As String _
) As Variant
[Visual Basic .NET] Public Function GetProperty ( _ ByVal Name As String _ ) As Object
[C#] public object GetProperty ( string Name );
[Java] public Object getProperty ( String Name ) throws IOException, AutomationException
[C++]
HRESULT GetProperty(
BSTR Name,
VARIANT* Value
);
Parameters
Name [in]
Name is a parameter of type BSTR
Value [out, retval]
Value is a parameter of type VARIANT
'The following code returns the Distribution Contact Names
Dim pPS As PropertySet
Dim vValues as Variant
Dim v as Variant
Dim s As String
'Returns the Distribution Contact Names
vValues = pPS.getProperty("distinfo/distrib/cntinfo/cntperp/cntper")
s = "Distribution Contact Names: " & vbNewLine
For Each v In vValues
s = s & " " & v & vbNewLine
Next
MsgBox s