Share via


ProgramKey Constructor (Guid, String)

Initializes a new instance of the ProgramKey class with the given GUID and description.

Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in microsoft.updateservices.administration.dll)

Usage

    Dim guid As Guid
Dim description As String

Dim instance As New ProgramKey(guid, description)

Syntax

'Declaration
Public Sub New ( _
    guid As Guid, _
    description As String _
)
public ProgramKey (
    Guid guid,
    string description
)
public:
ProgramKey (
    Guid guid, 
    String^ description
)
public ProgramKey (
    Guid guid, 
    String description
)
public function ProgramKey (
    guid : Guid, 
    description : String
)

Parameters

  • guid
    The GUID of the key.
  • description
    Description of the key.

Exceptions

Exception type Condition
ArgumentNullException

description is a null reference.

Platforms

Development Platforms

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Server 2008 R2

See Also

Reference

ProgramKey Class
ProgramKey Members
Microsoft.UpdateServices.Administration Namespace