CollectionSet.ISfcRenamable.ScriptRename 方法
Produces the script to rename this object to the specified key. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
命名空間: Microsoft.SqlServer.Management.Collector
組件: Microsoft.SqlServer.Management.Collector (在 Microsoft.SqlServer.Management.Collector.dll 中)
語法
'宣告
Private Function ScriptRename ( _
newKey As SfcKey _
) As ISfcScript Implements ISfcRenamable.ScriptRename
'用途
Dim instance As CollectionSet
Dim newKey As SfcKey
Dim returnValue As ISfcScript
returnValue = CType(instance, ISfcRenamable).ScriptRename(newKey)
ISfcScript ISfcRenamable.ScriptRename(
SfcKey newKey
)
private:
virtual ISfcScript^ ScriptRename(
SfcKey^ newKey
) sealed = ISfcRenamable::ScriptRename
private abstract ScriptRename :
newKey:SfcKey -> ISfcScript
private override ScriptRename :
newKey:SfcKey -> ISfcScript
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。
參數
- newKey
型別:Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
The SfcKey object that contains the new name.
傳回值
型別:Microsoft.SqlServer.Management.Sdk.Sfc.ISfcScript
Returns ISfcScript. An ISfcScript object that contains the script.
實作
ISfcRenamable.ScriptRename(SfcKey)