VistaDB 6
VistaDB.DDA Namespace / IVistaDBDatabase Interface / RegisterClrProcedure Method
The CLR Proc custom name to register
The full name of CLR Proc hosted method. The name should include namespace the CLR Proc belongs to. The procedure should be static
The name of assembly registered in database with CreateAssembly or UpdateAssembly
User's description for this procedure. May be a null reference (Nothing in Visual Basic)


In This Topic
    RegisterClrProcedure Method
    In This Topic
    Looks for CLR Proc in assembly. If CLR Proc found, registers the link to this method by custom name
    Syntax
    'Declaration
     
    
    Sub RegisterClrProcedure( _
       ByVal procedureName As System.String, _
       ByVal clrHostedMethod As System.String, _
       ByVal assemblyName As System.String, _
       ByVal description As System.String _
    ) 
    'Usage
     
    
    Dim instance As IVistaDBDatabase
    Dim procedureName As System.String
    Dim clrHostedMethod As System.String
    Dim assemblyName As System.String
    Dim description As System.String
     
    instance.RegisterClrProcedure(procedureName, clrHostedMethod, assemblyName, description)
    void RegisterClrProcedure( 
       System.string procedureName,
       System.string clrHostedMethod,
       System.string assemblyName,
       System.string description
    )

    Parameters

    procedureName
    The CLR Proc custom name to register
    clrHostedMethod
    The full name of CLR Proc hosted method. The name should include namespace the CLR Proc belongs to. The procedure should be static
    assemblyName
    The name of assembly registered in database with CreateAssembly or UpdateAssembly
    description
    User's description for this procedure. May be a null reference (Nothing in Visual Basic)
    Remarks
    The assembly may contain a method to treat row results got with CLR Proc. In such case the CLR Proc should be marked with VistaDBCLRKind attribute having the property FillRow initialize with name of respecting method
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also