Share via


NameValueCollection.Set Method

This method supports the infrastructure and is not intended to be used directly from your code.

Creates a name/value pair and adds it to the collection.

Namespace: Microsoft.ComputeCluster
Assembly: CcpAPI (in ccpapi.dll)

Usage

Syntax

'Declaration
Public Sub Set ( _
    name As String, _
    value As String _
)
public void Set (
    string name,
    string value
)
public:
virtual void Set (
    String^ name, 
    String^ value
) sealed
public final void Set (
    String name, 
    String value
)
public final function Set (
    name : String, 
    value : String
)

Parameters

  • name
    The name.
  • value
    The value.

Remarks

This method searches for the first occurrence of the name. If the name is found, the method replaces the value; otherwise, the name/value pair is added to the end of the collection.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Microsoft Windows Compute Cluster Server 2003, Windows Server 2003, Windows XP

Target Platforms

Microsoft Windows Compute Cluster Server 2003, Windows Server 2003 with Compute Cluster Pack Client Utilities, Windows XP with Compute Cluster Pack Client Utilities

See Also

Reference

NameValueCollection Class
NameValueCollection Members
Microsoft.ComputeCluster Namespace