Partager via


IRtdServer.ConnectData Method

Adds new topics from a real-time data server. The ConnectData method is called when a file is opened that contains real-time data functions or when a user types in a new formula which contains the RTD function.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function ConnectData ( _
    TopicID As Integer, _
    ByRef Strings As Array, _
    <OutAttribute> ByRef GetNewValues As Boolean _
) As Object
'Usage
Dim instance As IRtdServer
Dim TopicID As Integer
Dim Strings As Array
Dim GetNewValues As Boolean
Dim returnValue As Object

returnValue = instance.ConnectData(TopicID, _
    Strings, GetNewValues)
Object ConnectData(
    int TopicID,
    ref Array Strings,
    out bool GetNewValues
)

Parameters

  • TopicID
    Type: System.Int32

    Required Integer. A unique value, assigned by Microsoft Excel, which identifies the topic.

  • Strings
    Type: System.Array

    Required Object. A single-dimensional array of strings identifying the topic.

  • GetNewValues
    Type: System.Boolean

    Required Boolean. True to determine if new values are to be acquired.

Return Value

Type: System.Object

See Also

Reference

IRtdServer Interface

IRtdServer Members

Microsoft.Office.Interop.Excel Namespace