共用方式為


ISfcRenamable.ScriptRename 方法

Renames the script that is used to create the policy with the specified key.

命名空間:  Microsoft.SqlServer.Management.Dmf
組件:  Microsoft.SqlServer.Dmf (在 Microsoft.SqlServer.Dmf.dll 中)

語法

'宣告
Private Function ScriptRename ( _
    key As SfcKey _
) As ISfcScript Implements ISfcRenamable.ScriptRename
'用途
Dim instance As PolicyCategory
Dim key As SfcKey
Dim returnValue As ISfcScript

returnValue = CType(instance, ISfcRenamable).ScriptRename(key)
ISfcScript ISfcRenamable.ScriptRename(
    SfcKey key
)
private:
virtual ISfcScript^ ScriptRename(
    SfcKey^ key
) sealed = ISfcRenamable::ScriptRename
private abstract ScriptRename : 
        key:SfcKey -> ISfcScript 
private override ScriptRename : 
        key:SfcKey -> ISfcScript 
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。

參數

傳回值

型別:Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .ISfcScript
An ISfcScript object that contains the renamed script.

實作

ISfcRenamable. . :: . .ScriptRename(SfcKey)