Compartilhar via


CheckDuplicateShareName Method in Class SMS_Package

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

In Configuration Manager, the CheckDuplicateShareName Windows Management Instrumentation (WMI) class method determines if the specified share name has been used by another package.

The following syntax is simplified from Managed Object Format (MOF) code and is intended to show the definition of the method.

SInt32 CheckDuplicateShareName(
     String ShareName,
     String PackageID,
     Boolean IsDuplicated,
      String DupPkgName,
     String DupPkgID,
     SInt32 DupPkgType
);

Parameters

  • ShareName
    Data type: String

    Qualifiers: [in]

    Share name defined for the package.

  • PackageID
    Data type: String

    Qualifiers: [in]

    ID of the package to which to add the share specified by ShareName.

  • IsDuplicated
    Data type: Boolean

    Qualifiers: [out]

    true if the share specified by ShareName has been used by another package.

  • DupPkgName
    Data type: String

    Qualifiers: [out]

    Name of the package using the share specified by ShareName.

  • DupPkgID
    Data type: String

    Qualifiers: [out]

    ID of the other package using the share specified by ShareName.

  • DupPkgType
    Data type: SInt32

    Qualifiers: [out]

    Type of package for which the share specified by ShareName is duplicated. Possible values are defined for the PackageType property of SMS_PackageBaseclass Server WMI Class. The default value is 1.

Return Values

An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.

For information about handling returned errors, see About Configuration Manager Errors.

Requirements

Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

Reference

SMS_PackageBaseclass Server WMI Class

Concepts

SMS_Package Server WMI Class