Touchstone 11.0 API Reference
SubmitAssociateResultsToProject Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > DataSourceManagementServiceClient Class : SubmitAssociateResultsToProject Method
Contains a SubmitAssociateResultsToProjectRequest that identifies the Project SID of the Project with which you want to associate the Results, along with the associated Data Source SID, Business Unit SID, and SQL Instance SID.
Associates all the Results within a Data Source with an existing Touchstone® Project.

You identify the Results to associate with a Project using the corresponding Touchstone-generated Data Source Sequential Identifier (SID).

Syntax
Public Function SubmitAssociateResultsToProject( _
   ByVal request As SubmitAssociateResultsToProjectRequest _
) As SubmitAssociateResultsToProjectResponse
Dim instance As DataSourceManagementServiceClient
Dim request As SubmitAssociateResultsToProjectRequest
Dim value As SubmitAssociateResultsToProjectResponse
 
value = instance.SubmitAssociateResultsToProject(request)

Parameters

request
Contains a SubmitAssociateResultsToProjectRequest that identifies the Project SID of the Project with which you want to associate the Results, along with the associated Data Source SID, Business Unit SID, and SQL Instance SID.

Return Value

A SubmitAssociateResultsToProjectResponse containing the Activity SID that uniquely identifies the asynchronous web service call that you made to associate the Results with the specified Project.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Instance SID to pass into this method, call the GetSqlInstances() method.

To find the Data Source SID to pass into this method, call the GetDataSources() method.

To find the Project SID to pass into this method, call the GetProjects() method.

Example
The following example shows how to associate Results with a specific Touchstone Project using the SubmitAssociateResultsToProject() method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.DataSourceManagement.Api;
            
class SnippetSubmitAssociateResultsToProjectRequest
{
    private static void SubmitAssociateResultsToProject(int businessUnitSid, int sqlInstanceSid, int projectSid, int dataSourceSid)
    {
        DataSourceManagementServiceClient dsClient = new DataSourceManagementServiceClient();
            
        SubmitAssociateResultsToProjectRequest request = new SubmitAssociateResultsToProjectRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.ProjectSid = projectSid;
        request.DataSourceSid = dataSourceSid;
        SubmitAssociateResultsToProjectResponse response = dsClient.SubmitAssociateResultsToProject(request);
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Submitted successfully to HPC with Activity ID: " + response.ActivitySid);
        }
    }
}
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

Reference

DataSourceManagementServiceClient Class
DataSourceManagementServiceClient Members