Share via


SoftwareDistributionPackage Constructor (String)

 

Applies To: Windows Server Update Services

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)

Syntax

public SoftwareDistributionPackage(
    string packageFile
)
public:
SoftwareDistributionPackage(
    String^ packageFile
)
new : 
        packageFile:string -> SoftwareDistributionPackage
Public Sub New (
    packageFile As String
)

Parameters

Exceptions

Exception

Condition

FileNotFoundException

packageFile could not be found.

XmlSchemaValidationException

packageFile does not contain a valid SDP XML.

See Also

SoftwareDistributionPackage Overload
SoftwareDistributionPackage Class
Microsoft.UpdateServices.Administration Namespace

Return to top