Share via


ISynonymFactory.CreateSynonym Method

Creates an IMutableSynonym object that has the specified name.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Function CreateSynonym ( _
    schema As ISchema, _
    name As String _
) As IMutableSynonym
'Usage
Dim instance As ISynonymFactory 
Dim schema As ISchema 
Dim name As String 
Dim returnValue As IMutableSynonym 

returnValue = instance.CreateSynonym(schema, _
    name)
IMutableSynonym CreateSynonym(
    ISchema schema,
    string name
)
IMutableSynonym^ CreateSynonym(
    ISchema^ schema, 
    String^ name
)
abstract CreateSynonym : 
        schema:ISchema * 
        name:string -> IMutableSynonym
function CreateSynonym(
    schema : ISchema, 
    name : String
) : IMutableSynonym

Parameters

  • name
    Type: System.String
    The name of the synonym object to create.

Return Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableSynonym
An IMutableSynonym object.

See Also

Reference

ISynonymFactory Interface

Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace