Share via


GetAssignedSite Method in Class SMS_Client

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 GetAssignedSite method gets the current assigned site of the client.

The following syntax is simplified from Managed Object Format (MOF) code and defines the method.

UInt32 GetAssignedSite(
     String sSiteCode
);

Parameters

  • sSiteCode
    Data type: String

    Qualifiers: [out]

    The site code for the currently assigned site.

Return Values

A UInt32 data type that is 0 to indicate success or non-zero to indicate failure.

Requirements

Runtime Requirements

For more information, see Configuration Manager Client Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Client Development Requirements.

See Also

Concepts

SMS_Client Client WMI Class
EvaluateMachinePolicy Method in Class SMS_Client
RequestMachinePolicy Method in Class SMS_Client
ResetPolicy Method in Class SMS_Client
SetAssignedSite Method in Class SMS_Client
SetGlobalLoggingConfiguration Method in Class SMS_Client
TriggerSchedule Method in Class SMS_Client