public CustomOrgUnitInfo GetCustomOrgUnitByCode( string code ) { GetCustomOrgUnitByCodeRequest request = new GetCustomOrgUnitByCodeRequest() { Code = code }; GetCustomOrgUnitResponse response = CallWebService< IOrgUnitManagementServicev1_0, GetCustomOrgUnitByCodeRequest, GetCustomOrgUnitResponse>( m_service1_0, request, ( s, q ) => s.GetCustomOrgUnitByCode( q ) ); return response.OrgUnit; }
/// <remarks/> public void GetCustomOrgUnitByCodeAsync(GetCustomOrgUnitByCodeRequest GetCustomOrgUnitByCodeRequest) { this.GetCustomOrgUnitByCodeAsync(GetCustomOrgUnitByCodeRequest, null); }
/// <remarks/> public void GetCustomOrgUnitByCodeAsync(GetCustomOrgUnitByCodeRequest GetCustomOrgUnitByCodeRequest, object userState) { if ((this.GetCustomOrgUnitByCodeOperationCompleted == null)) { this.GetCustomOrgUnitByCodeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCustomOrgUnitByCodeOperationCompleted); } this.InvokeAsync("GetCustomOrgUnitByCode", new object[] { GetCustomOrgUnitByCodeRequest}, this.GetCustomOrgUnitByCodeOperationCompleted, userState); }
/// <remarks/> public System.IAsyncResult BeginGetCustomOrgUnitByCode(GetCustomOrgUnitByCodeRequest GetCustomOrgUnitByCodeRequest, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetCustomOrgUnitByCode", new object[] { GetCustomOrgUnitByCodeRequest}, callback, asyncState); }