ImportRole Method in Class SMS_Role
Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager
The ImportRole Windows Management Instrumentation (WMI) class method, in System Center 2012 R2 Configuration Manager, imports a role defined by an XML string to the database.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
Syntax
SInt32 ImportRole(
String RolesXml,
Boolean OverwrittenExisted,
String ErrorStr,
);
Parameters
RolesXml
Data type: StringQualifiers: [in]
The id of the role.
OverwrittenExisted
Data type: BooleanQualifiers: [in]
true, if an existing role should be overwritten. The default value is true.
ErrorStr
Data type: StringQualifiers: [out]
The error information if there is any error while importing the role.
Return Values
An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.
Requirements
Runtime Requirements
For more information, see Configuration Manager Server Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Server Development Requirements.