Microsoft Internet Security and Acceleration Server 2004 SDK

Value Property of IFPCVendorParametersSet[C++]

FPCVendorParametersSet.Value [Visual Basic]

[C++]

The Value property gets or sets the value associated with the parameter name supplied.

HRESULT get_Value(
  BSTR bstrName,
  VARIANT* pvValue
);

HRESULT put_Value(
  BSTR bstrName,
  VARIANT vValue
);

Parameters

bstrName
Name of the parameter for which the value is to be retrieved or set.
pvValue
Pointer to a VARIANT that on return receives the value associated with the parameter name specified in the Name parameter. The value can be of any subtype defined in the VARIANT type and is not necessarily a string.
vValue
Value to be associated with the parameter name specified in the Name parameter. The value can be of any subtype defined in the VARIANT type and is not necessarily a string.

Return Values

These property methods return S_OK if the call is successful; otherwise, they return an error code.

Remarks

This property is read/write.

[Visual Basic]

The Value property gets or sets the value associated with the parameter name supplied.

Property Value( _
  ByVal Name As String _
) As Variant

Parameters

Name
Name of the parameter for which the value is to be retrieved or set.

Property Value

Value associated with the parameter name specified in the Name parameter. The value can be of any subtype defined in the Variant type and is not necessarily a string.

Remarks

This property is read/write.

Example Code

The FPCVendorParametersSet object is used to store data that is defined as {name, value} pairs by using the Value property. The following example stores a parameter named x having a value of 1:

Dim vps As FPCVendorParametersSet
...
vps.Value("x") = 1

The expression Value("x") will return the value. The Value property is also the default property. The following examples are equivalent:

vps.Value("x") 
vps("x")

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCVendorParametersSet