System.Net Przestrzeń nazw
Prosty interfejs programistyczny dla wielu protokołów używanych obecnie w sieciach. Provides a simple programming interface for many of the protocols used on networks today. WebRequestKlasy i WebResponse stanowią podstawę nazywanymi protokołami podłączanymi, implementację usług sieciowych, która umożliwia tworzenie aplikacji korzystających z zasobów internetowych bez obaw o szczegółowe informacje dotyczące poszczególnych protokołów. The WebRequest and WebResponse classes form the basis of what are called pluggable protocols, an implementation of network services that enables you to develop applications that use Internet resources without worrying about the specific details of the individual protocols. Klasy w System.Net przestrzeni nazw mogą służyć do tworzenia aplikacji do sklepu Windows lub aplikacji klasycznych. Classes in the System.Net namespace can be used to develop Windows Store apps or desktop apps. W przypadku użycia w aplikacji ze sklepu Windows klasy w System.Net przestrzeni nazw mają wpływ na funkcję izolacji sieci, która jest częścią modelu zabezpieczeń aplikacji używanego przez system Windows Developer Preview. When used in a Windows Store app, classes in the System.Net namespace are affected by network isolation feature, part of the application security model used by the Windows Developer Preview. Odpowiednie możliwości sieci muszą być włączone w manifeście aplikacji dla aplikacji ze sklepu Windows dla systemu, aby umożliwić dostęp do sieci za pomocą aplikacji ze sklepu Windows. The appropriate network capabilities must be enabled in the app manifest for a Windows Store app for the system to allow network access by a Windows Store app. Aby uzyskać więcej informacji, zobacz izolacja sieci dla aplikacji ze sklepu Windows. For more information, see the Network Isolation for Windows Store Apps.
Klasy
AuthenticationManager |
Zarządza modułami uwierzytelniania wywoływanymi podczas procesu uwierzytelniania klienta.Manages the authentication modules called during the client authentication process. |
Authorization |
Zawiera komunikat uwierzytelniania dla serwera internetowego.Contains an authentication message for an Internet server. |
Cookie |
Zawiera zestaw właściwości i metod, które są używane do zarządzania plikami cookie.Provides a set of properties and methods that are used to manage cookies. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
CookieCollection |
Dostarcza kontener kolekcji dla wystąpień Cookie klasy.Provides a collection container for instances of the Cookie class. |
CookieContainer |
Zawiera kontener dla kolekcji CookieCollection obiektów.Provides a container for a collection of CookieCollection objects. |
CookieException |
Wyjątek, który jest generowany, gdy wystąpi błąd dodawania Cookie do CookieContainer .The exception that is thrown when an error is made adding a Cookie to a CookieContainer. |
CredentialCache |
Zapewnia magazyn dla wielu poświadczeń.Provides storage for multiple credentials. |
Dns |
Oferuje proste funkcje rozpoznawania nazw domen.Provides simple domain name resolution functionality. |
DnsEndPoint |
Reprezentuje punkt końcowy sieci jako nazwę hosta lub ciąg reprezentujący adres IP i numer portu.Represents a network endpoint as a host name or a string representation of an IP address and a port number. |
DnsPermission |
Kontroluje prawa dostępu do serwerów systemu nazw domen (DNS) w sieci.Controls rights to access Domain Name System (DNS) servers on the network. |
DnsPermissionAttribute |
Określa uprawnienie do żądania informacji z serwerów nazw domen.Specifies permission to request information from Domain Name Servers. |
DownloadDataCompletedEventArgs |
Udostępnia dane dla zdarzenia DownloadDataCompleted.Provides data for the DownloadDataCompleted event. |
DownloadProgressChangedEventArgs |
Dostarcza dane dla DownloadProgressChanged zdarzenia WebClient .Provides data for the DownloadProgressChanged event of a WebClient. |
DownloadStringCompletedEventArgs |
Udostępnia dane dla zdarzenia DownloadStringCompleted.Provides data for the DownloadStringCompleted event. |
EndPoint |
Identyfikuje adres sieciowy.Identifies a network address. Jest to |
EndpointPermission |
Definiuje punkt końcowy, który jest autoryzowany przez SocketPermission wystąpienie.Defines an endpoint that is authorized by a SocketPermission instance. |
FileWebRequest |
Zapewnia implementację systemu plików WebRequest klasy.Provides a file system implementation of the WebRequest class. |
FileWebResponse |
Zapewnia implementację systemu plików WebResponse klasy.Provides a file system implementation of the WebResponse class. |
FtpWebRequest |
Implementuje klienta protokół transferu plików (FTP).Implements a File Transfer Protocol (FTP) client. |
FtpWebResponse |
Hermetyzuje odpowiedź serwera protokół transferu plików (FTP) na żądanie.Encapsulates a File Transfer Protocol (FTP) server's response to a request. |
GlobalProxySelection |
Zawiera globalne domyślne wystąpienie serwera proxy dla wszystkich żądań HTTP.Contains a global default proxy instance for all HTTP requests. |
HttpListener |
Zapewnia prosty, programowo sterowany odbiornik protokołu HTTP.Provides a simple, programmatically controlled HTTP protocol listener. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
HttpListenerBasicIdentity |
Przechowuje nazwę użytkownika i hasło z podstawowego żądania uwierzytelniania.Holds the user name and password from a basic authentication request. |
HttpListenerContext |
Zapewnia dostęp do obiektów żądania i odpowiedzi używanych przez HttpListener klasę.Provides access to the request and response objects used by the HttpListener class. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
HttpListenerException |
Wyjątek, który jest generowany, gdy wystąpi błąd podczas przetwarzania żądania HTTP.The exception that is thrown when an error occurs processing an HTTP request. |
HttpListenerPrefixCollection |
Reprezentuje kolekcję służącą do przechowywania prefiksów Uniform Resource Identifier (URI) dla HttpListener obiektów.Represents the collection used to store Uniform Resource Identifier (URI) prefixes for HttpListener objects. |
HttpListenerRequest |
Opisuje przychodzące żądanie HTTP do HttpListener obiektu.Describes an incoming HTTP request to an HttpListener object. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
HttpListenerResponse |
Reprezentuje odpowiedź na żądanie, które jest obsługiwane przez HttpListener obiekt.Represents a response to a request being handled by an HttpListener object. |
HttpListenerTimeoutManager |
Limit czasu, który ma być używany dla HttpListener obiektu.The timeout manager to use for an HttpListener object. |
HttpVersion |
Definiuje numery wersji HTTP, które są obsługiwane przez HttpWebRequest klasy i HttpWebResponse .Defines the HTTP version numbers that are supported by the HttpWebRequest and HttpWebResponse classes. |
HttpWebRequest |
Zapewnia implementację specyficzną dla protokołu HTTP WebRequest .Provides an HTTP-specific implementation of the WebRequest class. |
HttpWebResponse |
Zapewnia implementację specyficzną dla protokołu HTTP WebResponse .Provides an HTTP-specific implementation of the WebResponse class. |
IPAddress |
Udostępnia adres IP.Provides an Internet Protocol (IP) address. |
IPEndPoint |
Reprezentuje punkt końcowy sieci jako adres IP i numer portu.Represents a network endpoint as an IP address and a port number. |
IPEndPointCollection |
Reprezentuje kolekcję służącą do przechowywania punktów końcowych sieci jako IPEndPoint obiektów.Represents a collection used to store network endpoints as IPEndPoint objects. |
IPHostEntry |
Udostępnia klasę kontenera dla informacji o adresie hosta internetowego.Provides a container class for Internet host address information. |
NetworkCredential |
Zapewnia poświadczenia dla schematów uwierzytelniania opartych na hasłach, takich jak uwierzytelnianie podstawowe, szyfrowane, NTLM i Kerberos.Provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication. |
NetworkProgressChangedEventArgs |
Zawiera dane dla zdarzenia zmiany postępu sieci.Provides data for the network progress changed event. |
OpenReadCompletedEventArgs |
Udostępnia dane dla zdarzenia OpenReadCompleted.Provides data for the OpenReadCompleted event. |
OpenWriteCompletedEventArgs |
Udostępnia dane dla zdarzenia OpenWriteCompleted.Provides data for the OpenWriteCompleted event. |
ProtocolViolationException |
Wyjątek, który jest generowany, gdy wystąpi błąd podczas korzystania z protokołu sieciowego.The exception that is thrown when an error is made while using a network protocol. |
ServicePoint |
Zapewnia zarządzanie połączeniami dla połączeń HTTP.Provides connection management for HTTP connections. |
ServicePointManager |
Zarządza kolekcją ServicePoint obiektów.Manages the collection of ServicePoint objects. |
SocketAddress |
Przechowuje serializowane informacje z EndPoint klas pochodnych.Stores serialized information from EndPoint derived classes. |
SocketPermission |
Kontroluje prawa do wprowadzania lub akceptowania połączeń na adresie transportowym.Controls rights to make or accept connections on a transport address. |
SocketPermissionAttribute |
Określa akcje zabezpieczeń umożliwiające sterowanie Socket połączeniami.Specifies security actions to control Socket connections. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
TransportContext |
TransportContextKlasa zawiera dodatkowy kontekst dotyczący podstawowej warstwy transportowej.The TransportContext class provides additional context about the underlying transport layer. |
UiSynchronizationContext |
Zapewnia kontekst synchronizacji dla zarządzanego interfejsu użytkownika używanego w modelach synchronizacji.Provides the synchronization context for the managed UI used in synchronization models. |
UploadDataCompletedEventArgs |
Udostępnia dane dla zdarzenia UploadDataCompleted.Provides data for the UploadDataCompleted event. |
UploadFileCompletedEventArgs |
Udostępnia dane dla zdarzenia UploadFileCompleted.Provides data for the UploadFileCompleted event. |
UploadProgressChangedEventArgs |
Dostarcza dane dla UploadProgressChanged zdarzenia WebClient .Provides data for the UploadProgressChanged event of a WebClient. |
UploadStringCompletedEventArgs |
Udostępnia dane dla zdarzenia UploadStringCompleted.Provides data for the UploadStringCompleted event. |
UploadValuesCompletedEventArgs |
Udostępnia dane dla zdarzenia UploadValuesCompleted.Provides data for the UploadValuesCompleted event. |
WebClient |
Zapewnia typowe metody wysyłania danych do i otrzymywania danych z zasobu identyfikowanego przez identyfikator URI.Provides common methods for sending data to and receiving data from a resource identified by a URI. |
WebException |
Wyjątek, który jest generowany w przypadku wystąpienia błędu podczas uzyskiwania dostępu do sieci za pomocą podłączanego protokołu.The exception that is thrown when an error occurs while accessing the network through a pluggable protocol. |
WebHeaderCollection |
Zawiera nagłówki protokołu skojarzone z żądaniem lub odpowiedzią.Contains protocol headers associated with a request or response. |
WebPermission |
Kontroluje prawa dostępu do zasobów internetowych protokołu HTTP.Controls rights to access HTTP Internet resources. |
WebPermissionAttribute |
Określa uprawnienia dostępu do zasobów internetowych.Specifies permission to access Internet resources. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
WebProxy |
Zawiera ustawienia serwera proxy HTTP dla WebRequest klasy.Contains HTTP proxy settings for the WebRequest class. |
WebRequest |
Wysyła żądanie do Uniform Resource Identifier (URI).Makes a request to a Uniform Resource Identifier (URI). Jest to |
WebRequestMethods |
Klasa kontenera dla WebRequestMethods.Ftp WebRequestMethods.File klas, i WebRequestMethods.Http .Container class for WebRequestMethods.Ftp, WebRequestMethods.File, and WebRequestMethods.Http classes. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
WebRequestMethods.File |
Reprezentuje typy metod protokołu plików, które mogą być używane z żądaniem pliku.Represents the types of file protocol methods that can be used with a FILE request. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
WebRequestMethods.Ftp |
Reprezentuje typy metod protokołu FTP, które mogą być używane z żądaniem FTP.Represents the types of FTP protocol methods that can be used with an FTP request. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
WebRequestMethods.Http |
Reprezentuje typy metod protokołu HTTP, które mogą być używane z żądaniem HTTP.Represents the types of HTTP protocol methods that can be used with an HTTP request. |
WebResponse |
Zapewnia odpowiedź z Uniform Resource Identifier (URI).Provides a response from a Uniform Resource Identifier (URI). Jest to |
WebUtility |
Zapewnia metody kodowania i dekodowania adresów URL podczas przetwarzania żądań sieci Web.Provides methods for encoding and decoding URLs when processing Web requests. |
WriteStreamClosedEventArgs |
Udostępnia dane dla zdarzenia WriteStreamClosed.Provides data for the WriteStreamClosed event. |
Interfejsy
IAuthenticationModule |
Udostępnia podstawowy interfejs uwierzytelniania dla modułów uwierzytelniania klienta sieci Web.Provides the base authentication interface for Web client authentication modules. |
ICertificatePolicy |
Sprawdza poprawność certyfikatu serwera.Validates a server certificate. |
ICredentialPolicy |
Definiuje zasady poświadczeń, które mają być używane dla żądań zasobów, które są wykonywane przy użyciu WebRequest i ich klas pochodnych.Defines the credential policy to be used for resource requests that are made using WebRequest and its derived classes. |
ICredentials |
Udostępnia podstawowy interfejs uwierzytelniania do pobierania poświadczeń dla uwierzytelniania klienta sieci Web.Provides the base authentication interface for retrieving credentials for Web client authentication. |
ICredentialsByHost |
Udostępnia interfejs do pobierania poświadczeń dla hosta, portu i typu uwierzytelniania.Provides the interface for retrieving credentials for a host, port, and authentication type. |
INetworkProgress |
Zawiera informacje o postępie sieci w wysyłaniu danych przez sieć.Provides information on network progress in sending data over the network. |
IUnsafeWebRequestCreate |
Tworzy niebezpieczny WebRequest dla Uniform Resource Identifier (URI).Creates an unsafe WebRequest to a Uniform Resource Identifier (URI). |
IWebProxy |
Udostępnia interfejs podstawowy do implementacji dostępu serwera proxy dla WebRequest klasy.Provides the base interface for implementation of proxy access for the WebRequest class. |
IWebProxyScript |
Udostępnia interfejs podstawowy służący do ładowania i uruchamiania skryptów w celu automatycznego wykrywania serwera proxy.Provides the base interface to load and execute scripts for automatic proxy detection. |
IWebRequestCreate |
Udostępnia interfejs podstawowy do tworzenia WebRequest wystąpień.Provides the base interface for creating WebRequest instances. |
Wyliczenia
AuthenticationSchemes |
Określa protokoły do uwierzytelnienia.Specifies protocols for authentication. |
DecompressionMethods |
Reprezentuje format kompresji plików i dekompresji, który ma być używany do kompresowania danych odebranych w odpowiedzi na HttpWebRequest .Represents the file compression and decompression encoding format to be used to compress the data received in response to an HttpWebRequest. |
FtpStatusCode |
Określa kody stanu zwracane dla operacji protokół transferu plików (FTP).Specifies the status codes returned for a File Transfer Protocol (FTP) operation. |
HttpRequestHeader |
Nagłówki HTTP, które mogą być określone w żądaniu klienta.The HTTP headers that may be specified in a client request. |
HttpResponseHeader |
Nagłówki HTTP, które można określić w odpowiedzi serwera.The HTTP headers that can be specified in a server response. |
HttpStatusCode |
Zawiera wartości kodów stanu zdefiniowanych dla protokołu HTTP.Contains the values of status codes defined for HTTP. |
NetworkAccess |
Określa uprawnienia dostępu do sieci.Specifies network access permissions. |
SecurityProtocolType |
Określa protokoły zabezpieczeń, które są obsługiwane przez pakiet zabezpieczeń Schannel.Specifies the security protocols that are supported by the Schannel security package. |
TransportType |
Definiuje typy transportu dla SocketPermission klas i Socket .Defines transport types for the SocketPermission and Socket classes. |
WebExceptionStatus |
Definiuje kody stanu dla WebException klasy.Defines status codes for the WebException class. |
Delegaci
AuthenticationSchemeSelector |
Wybiera schemat uwierzytelniania dla HttpListener wystąpienia.Selects the authentication scheme for an HttpListener instance. |
BindIPEndPoint |
Reprezentuje metodę, która określa lokalny adres IP i numer portu dla ServicePoint .Represents the method that specifies a local Internet Protocol address and port number for a ServicePoint. |
CipherSuitesCallback | |
DownloadDataCompletedEventHandler |
Reprezentuje metodę, która będzie obsługiwać DownloadDataCompleted zdarzenie typu WebClient .Represents the method that will handle the DownloadDataCompleted event of a WebClient. |
DownloadProgressChangedEventHandler |
Reprezentuje metodę, która będzie obsługiwać DownloadProgressChanged zdarzenie typu WebClient .Represents the method that will handle the DownloadProgressChanged event of a WebClient. |
DownloadStringCompletedEventHandler |
Reprezentuje metodę, która będzie obsługiwać DownloadStringCompleted zdarzenie typu WebClient .Represents the method that will handle the DownloadStringCompleted event of a WebClient. |
HttpContinueDelegate |
Reprezentuje metodę, która powiadamia wywoływania, gdy klient otrzymuje odpowiedź na kontynuowanie.Represents the method that notifies callers when a continue response is received by the client. |
HttpListener.ExtendedProtectionSelector |
Delegat o nazwie do określenia, który ExtendedProtectionPolicy ma być używany dla każdego HttpListener żądania.A delegate called to determine the ExtendedProtectionPolicy to use for each HttpListener request. |
OpenReadCompletedEventHandler |
Reprezentuje metodę, która będzie obsługiwać OpenReadCompleted zdarzenie typu WebClient .Represents the method that will handle the OpenReadCompleted event of a WebClient. |
OpenWriteCompletedEventHandler |
Reprezentuje metodę, która będzie obsługiwać OpenWriteCompleted zdarzenie typu WebClient .Represents the method that will handle the OpenWriteCompleted event of a WebClient. |
UploadDataCompletedEventHandler |
Reprezentuje metodę, która będzie obsługiwać UploadDataCompleted zdarzenie typu WebClient .Represents the method that will handle the UploadDataCompleted event of a WebClient. |
UploadFileCompletedEventHandler |
Reprezentuje metodę, która będzie obsługiwać UploadFileCompleted zdarzenie typu WebClient .Represents the method that will handle the UploadFileCompleted event of a WebClient. |
UploadProgressChangedEventHandler |
Reprezentuje metodę, która będzie obsługiwać UploadProgressChanged zdarzenie typu WebClient .Represents the method that will handle the UploadProgressChanged event of a WebClient. |
UploadStringCompletedEventHandler |
Reprezentuje metodę, która będzie obsługiwać UploadStringCompleted zdarzenie typu WebClient .Represents the method that will handle the UploadStringCompleted event of a WebClient. |
UploadValuesCompletedEventHandler |
Reprezentuje metodę, która będzie obsługiwać UploadValuesCompleted zdarzenie typu WebClient .Represents the method that will handle the UploadValuesCompleted event of a WebClient. |
WriteStreamClosedEventHandler |
Reprezentuje metodę, która będzie obsługiwać WriteStreamClosed zdarzenie typu WebClient .Represents the method that will handle the WriteStreamClosed event of a WebClient. |
Zobacz też
Programowanie dla sieci w .NET Framework Network Programming in the .NET Framework
Najlepsze rozwiązania dotyczące klas System.Net Best Practices for System.Net Classes
Zarządzanie pamięcią podręczną dla aplikacji sieciowych Cache Management for Network Applications
Izolacja sieci dla aplikacji ze sklepu Windows Store Network Isolation for Windows Store Apps
Przykłady programowania sieciowego Network Programming Samples
Śledzenie sieci w .NET Framework Network Tracing in the .NET Framework
Zabezpieczenia w programowaniu sieciowym Security in Network Programming