Example #1
0
 public void CreateDataSource(DataSource source)
 {
     RS.DataSourceDefinition definition = new RS.DataSourceDefinition
     {
         Extension                = source.Extension,
         ConnectString            = source.ConnectionString,
         CredentialRetrieval      = (RS.CredentialRetrievalEnum)source.CredentialRetrieval,
         Enabled                  = true,
         EnabledSpecified         = true,
         ImpersonateUser          = false,
         ImpersonateUserSpecified = true,
         Prompt             = null,
         WindowsCredentials = source.WindowsCredentials,
     };
     if (source.UserName != null)
     {
         definition.UserName = source.UserName;
         definition.Password = source.Password;
     }
 }
Example #2
0
 public void SetDataSourceContents(string DataSource, DataSourceDefinition Definition)
 {
     this.Invoke("SetDataSourceContents", new object[] {
                                                           DataSource,
                                                           Definition});
 }
Example #3
0
 public void CreateDataSource(string DataSource, string Parent, bool Overwrite, DataSourceDefinition Definition, Property[] Properties)
 {
     this.Invoke("CreateDataSource", new object[] {
                                                      DataSource,
                                                      Parent,
                                                      Overwrite,
                                                      Definition,
                                                      Properties});
 }
Example #4
0
 /// <remarks/>
 public System.IAsyncResult BeginSetDataSourceContents(string DataSource, DataSourceDefinition Definition, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("SetDataSourceContents", new object[] {
                                                                       DataSource,
                                                                       Definition}, callback, asyncState);
 }
Example #5
0
 /// <remarks/>
 public System.IAsyncResult BeginCreateDataSource(string DataSource, string Parent, bool Overwrite, DataSourceDefinition Definition, Property[] Properties, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("CreateDataSource", new object[] {
                                                                  DataSource,
                                                                  Parent,
                                                                  Overwrite,
                                                                  Definition,
                                                                  Properties}, callback, asyncState);
 }