Share via


IWorkbookModelUsage.Connect method

Called when a new connection is initiated. This will be called also on the connection associated with the initial load

Namespace:  Microsoft.Office.Excel.Server.WebServices
Assembly:  Microsoft.Office.Excel.Server.WebServices (in Microsoft.Office.Excel.Server.WebServices.dll)

Syntax

'Declaration
Function Connect ( _
    modelHandle As Object, _
    userName As String _
) As Object
'Usage
Dim instance As IWorkbookModelUsage
Dim modelHandle As Object
Dim userName As String
Dim returnValue As Object

returnValue = instance.Connect(modelHandle, _
    userName)
Object Connect(
    Object modelHandle,
    string userName
)

Parameters

  • modelHandle
    Type: System.Object

    Handle returned from the initial Load call

  • userName
    Type: System.String

    Name of the user connecting to the model

Return value

Type: System.Object
A handle to the connection which will be passed to the RequestComplete method to associate the request with the connection

See also

Reference

IWorkbookModelUsage interface

IWorkbookModelUsage members

Microsoft.Office.Excel.Server.WebServices namespace