类SMS_Role中的 ImportRole 方法
在 ImportRole
Configuration Manager 中,Windows Management Instrumentation (WMI) 类方法将 XML 字符串定义的角色导入数据库。
以下语法从托管对象格式 (MOF) 代码中简化,并定义了 方法。
语法
SInt32 ImportRole(
String RolesXml,
Boolean OverwrittenExisted,
String ErrorStr,
);
参数
RolesXml
数据类型String
限定符:[in]
角色的 ID。
OverwrittenExisted
数据类型Boolean
限定符:[in]
true
,如果应覆盖现有角色,则为 。 默认值为 true。
ErrorStr
数据类型String
限定符:[out]
导入角色时出现任何错误时的错误信息。
返回值
一个 SInt32
数据类型,为 0 表示成功,非零表示失败。
要求
运行时要求
有关详细信息,请参阅Configuration Manager服务器运行时要求。
开发要求
有关详细信息,请参阅Configuration Manager服务器开发要求。