ThreadNetworkContext ThreadNetworkContext ThreadNetworkContext ThreadNetworkContext ThreadNetworkContext Class

Definition

Note

Windows Information Protection (WIP) policy cannot be applied on Windows 10, version 1511 (build 10586) or earlier.

A protected network context for an enterprise identity. The creation of the context tags all network connections made thereafter on the current thread with the identity, and allows access to enterprise resources that are access controlled by the enterprise's policy.

Note

Although is attributed as being agile, Close (or ) must be called on the originating thread in order to avoid an exception.

public : sealed class ThreadNetworkContext : IClosable
struct winrt::Windows::Security::EnterpriseData::ThreadNetworkContext : IClosable
public sealed class ThreadNetworkContext : IDisposable
Public NotInheritable Class ThreadNetworkContext Implements IDisposable
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0) Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced v1)

Methods

Close() Close() Close() Close() Close()

Note

Windows Information Protection (WIP) policy cannot be applied on Windows 10, version 1511 (build 10586) or earlier.

Closes the protected network context. To avoid race conditions against other tasks, the app must call Close after access to the protected resource is initiated.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

See also