System.ServiceModel.Description.ContractDescriptionGenerator.GetContract C# (CSharp) Метод

GetContract() публичный статический Метод

public static GetContract ( Type contractType ) : ContractDescription
contractType System.Type
Результат ContractDescription
		public static ContractDescription GetContract (
			Type contractType) {
			return GetContract (contractType, (Type) null);
		}

Same methods

ContractDescriptionGenerator::GetContract ( Type givenContractType, Type givenServiceType ) : ContractDescription
ContractDescriptionGenerator::GetContract ( Type givenContractType, Type givenServiceType, Type serviceTypeForCallback ) : ContractDescription
ContractDescriptionGenerator::GetContract ( Type contractType, object serviceImplementation ) : ContractDescription

Usage Example

Пример #1
0
 public static ContractDescription GetContract(
     Type contractType)
 {
     if (contractType == null)
     {
         throw new ArgumentNullException("contractType");
     }
     return(ContractDescriptionGenerator.GetContract(contractType));
 }
All Usage Examples Of System.ServiceModel.Description.ContractDescriptionGenerator::GetContract