System.ServiceModel.Description.ContractDescription.ContractDescription C# (CSharp) Method

ContractDescription() public method

public ContractDescription ( string name, string ns ) : System
name string
ns string
return System
		public ContractDescription (string name, string ns)
		{
			if (name == null)
				throw new ArgumentNullException ("name");
			if (name.Length == 0)
				throw new ArgumentOutOfRangeException ("ContractDescription's Name must be a non-empty string.");
			if (ns == null)
				ns = "http://tempuri.org/";

			this.name = name;
			this.ns = ns;
			behaviors = new KeyedByTypeCollection<IContractBehavior>  ();
			operations = new OperationDescriptionCollection ();
		}

Same methods

ContractDescription::ContractDescription ( string name ) : System