แก้ไข

แชร์ผ่าน


Partial trust

Starting with .NET Framework 3.5, partially trusted callers can access public types and methods implemented in System.ServiceModel, System.Runtime.Serialization, and System.ServiceModel.Web. This section describes supported scenarios for using Windows Communication Foundation (WCF) within a partially trusted application. It also describes the limited subset of WCF functionality available to applications running with reduced code access security (CAS) permissions.

Note

Code Access Security (CAS) has been deprecated across all versions of .NET Framework and .NET. Recent versions of .NET do not honor CAS annotations and produce errors if CAS-related APIs are used. Developers should seek alternative means of accomplishing security tasks.

In This Section

Supported Deployment Scenarios
Describes the main partial trust scenarios for running WCF.

Partial Trust Feature Compatibility
Describes the WCF features that can't be used with partial trust.

Partial Trust Best Practices
Contains best practices for using WCF in partially trusted applications.