ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 287
نمايش فراداده

PortTypeCollection

System.Web.Services.Description (system.web.services.dll)sealed class

This collection of PortType objects (which are themselves collections of Operation objects) is used by the PortTypes property of the ServiceDescription class to represent all <portType> elements in a WSDL document. You can access each PortType element by name or position (index number).

public sealed class 

PortTypeCollection : ServiceDescriptionBaseCollection { // Public Instance Properties public PortType

this [string

name ]{get; } public PortType

this [int

index ]{set; get; } // Public Instance Methods public int

Add (PortType

portType ); public bool

Contains (PortType

portType ); public void

CopyTo (PortType[ ]

array , int

index ); public int

IndexOf (PortType

portType ); public void

Insert (int

index , PortType

portType ); public void

Remove (PortType

portType ); // Protected Instance Methods protected override string

GetKey (object

value ); // overrides ServiceDescriptionBaseCollection protected override void

SetParent (object

value , object

parent ); // overrides ServiceDescriptionBaseCollection }

Hierarchy

System.Object System.Collections.CollectionBase(System.Collections.IList, System.Collections.ICollection, System.Collections.IEnumerable) ServiceDescriptionBaseCollection PortTypeCollection

Returned By

ServiceDescription.PortTypes