Share via


EnvironmentVariable.ISfcRenamable.ScriptRename Method

Renames the current environment variable script with a new key.

Namespace:  Microsoft.SqlServer.Management.IntegrationServices
Assembly:  Microsoft.SqlServer.Management.IntegrationServices (in Microsoft.SqlServer.Management.IntegrationServices.dll)

Syntax

'Declaration
Private Function ScriptRename ( _
    newKey As SfcKey _
) As ISfcScript Implements ISfcRenamable.ScriptRename
'Usage
Dim instance As EnvironmentVariable 
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 supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Sdk.Sfc.ISfcScript
The renamed environment variable script.

Implements

ISfcRenamable.ScriptRename(SfcKey)

See Also

Reference

EnvironmentVariable Class

Microsoft.SqlServer.Management.IntegrationServices Namespace