adTempus API
ArcanaDevelopment.adTempus.Client Namespace / Scheduler Class / AddOrUpdateLinkedServer Method
A Scheduler connection to the other server.
The settings to use for the relationship. Specify a null reference (Nothing in Visual Basic) to use the default settings.
Error messages if the relationship cannot be created.


In This Topic
    AddOrUpdateLinkedServer Method
    In This Topic
    Adds a server trust relationship with another server.
    Syntax
    'Declaration
     
    
    <ContractAnnotationAttribute("otherServer:null=>serverSettings:notnull;otherServer:notnull=>serverSettings:canbenull;serverSettings:null=>otherServer:notnull;serverSettings:notnull=>otherServer:canbenull")>
    Public Function AddOrUpdateLinkedServer( _
       ByVal otherServer As Scheduler, _
       ByVal serverSettings As LinkedServer, _
       ByRef messages As MessageCollection _
    ) As Boolean
    [ContractAnnotation("otherServer:null=>serverSettings:notnull;otherServer:notnull=>serverSettings:canbenull;serverSettings:null=>otherServer:notnull;serverSettings:notnull=>otherServer:canbenull")]
    public bool AddOrUpdateLinkedServer( 
       Scheduler otherServer,
       LinkedServer serverSettings,
       out MessageCollection messages
    )
    [ContractAnnotation("otherServer:null=>serverSettings:notnull;otherServer:notnull=>serverSettings:canbenull;serverSettings:null=>otherServer:notnull;serverSettings:notnull=>otherServer:canbenull")]
    public:
    bool AddOrUpdateLinkedServer( 
       Scheduler^ otherServer,
       LinkedServer^ serverSettings,
       [Out] MessageCollection^ messages
    ) 

    Parameters

    otherServer
    A Scheduler connection to the other server.
    serverSettings
    The settings to use for the relationship. Specify a null reference (Nothing in Visual Basic) to use the default settings.
    messages
    Error messages if the relationship cannot be created.

    Return Value

    True if the update succeeds, or False if it fails.
    Remarks

    The caller must be an adTempus Administrator on the target server.

    The relationship is added only to the target server. To create a reciprocal relationship you must also call AddOrUpdateLinkedServer on otherServer.

    See Also