Share via


IUserDefinedFunctionFactory.CreateScalarValuedFunction Method

Creates an IScalarValuedFunction object that belongs to the specified ISchema object and has the specified name.

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

Syntax

'Declaration
Function CreateScalarValuedFunction ( _
    schema As ISchema, _
    name As String _
) As IMutableScalarValuedFunction
'Usage
Dim instance As IUserDefinedFunctionFactory 
Dim schema As ISchema 
Dim name As String 
Dim returnValue As IMutableScalarValuedFunction 

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

Parameters

Return Value

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

See Also

Reference

IUserDefinedFunctionFactory Interface

Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace