Esempio n. 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;
     }
 }
Esempio n. 2
0
 public void SetDataSourceContents(string DataSource, DataSourceDefinition Definition)
 {
     this.Invoke("SetDataSourceContents", new object[] {
                                                           DataSource,
                                                           Definition});
 }
Esempio n. 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});
 }
Esempio n. 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);
 }
Esempio n. 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);
 }