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 支持使用显式接口实现,但不支持声明新显式接口实现。
参数
- key
类型:Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcKey
Specifies the new key that is used to create the policy.
返回值
类型:Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .ISfcScript
An ISfcScript object that contains the renamed script.