SoftwareDistributionPackage Constructor (String)

Initializes a new instance of SoftwareDistributionPackage with the given SDP package file.

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

Usage

    Dim packageFile As String

Dim instance As New SoftwareDistributionPackage(packageFile)

Syntax

'Declaration
Public Sub New ( _
    packageFile As String _
)
public SoftwareDistributionPackage (
    string packageFile
)
public:
SoftwareDistributionPackage (
    String^ packageFile
)
public SoftwareDistributionPackage (
    String packageFile
)
public function SoftwareDistributionPackage (
    packageFile : String
)

Parameters

  • packageFile
    The path of the package file.

Exceptions

Exception type Condition
FileNotFoundException

packageFile could not be found.

XmlSchemaValidationException

packageFile does not contain a valid SDP XML.

Platforms

Development Platforms

Target Platforms

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

See Also

Reference

SoftwareDistributionPackage Class
SoftwareDistributionPackage Members
Microsoft.UpdateServices.Administration Namespace