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, IThreadNetworkContextpublic sealed class ThreadNetworkContext : IDisposable, IThreadNetworkContextPublic NotInheritable Class ThreadNetworkContext Implements IDisposable, IThreadNetworkContext// You can use this class in JavaScript.
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()

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.

public : void Close()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.

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

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

This member is not implemented in C++void Dispose()Sub Disposevoid Dispose()