取得自訂字串選項。
語法
MI_INLINE MI_Result MI_OperationOptions_GetString(
[in] MI_OperationOptions *options,
const MI_Char *optionName,
const MI_Char **value,
[out, optional] MI_Uint32 *index,
[out, optional] MI_Uint32 *flags
);
參數
[in] options
optionName
以 Null 結尾的字串,表示選項的名稱。
value
傳回的選項值。
[out, optional] index
傳回選項以零起始的索引。
[out, optional] flags
傳回的選項旗標。
傳回值
指定函式傳回碼 之MI_Result 列舉的值。 這可以是下列其中一個程序代碼。
規格需求
| 需求 | 值 |
|---|---|
| 最低支援的用戶端 | Windows 8 |
| 最低支援的伺服器 | Windows Server 2012 |
| 目標平台 | Windows |
| 標頭 | mi.h |
| 可轉散發套件 | 在 Windows Server 2008 R2 上 Windows Management Framework 3.0 SP1、Windows 7 SP1 和 Windows Server 2008 SP2 |