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; } }
public void SetDataSourceContents(string DataSource, DataSourceDefinition Definition) { this.Invoke("SetDataSourceContents", new object[] { DataSource, Definition}); }
public void CreateDataSource(string DataSource, string Parent, bool Overwrite, DataSourceDefinition Definition, Property[] Properties) { this.Invoke("CreateDataSource", new object[] { DataSource, Parent, Overwrite, Definition, Properties}); }
/// <remarks/> public System.IAsyncResult BeginSetDataSourceContents(string DataSource, DataSourceDefinition Definition, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetDataSourceContents", new object[] { DataSource, Definition}, callback, asyncState); }
/// <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); }