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
- schema
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.ISchema
The ISchema object that is the parent of the function.
- name
Type: System.String
The name of the function to create.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableScalarValuedFunction
An IMutableScalarValuedFunction object.
See Also
Reference
IUserDefinedFunctionFactory Interface
Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace