다음을 통해 공유


TrustInfo.SameSiteAccess Property

Gets or sets the level of same site access permitted, specifying whether the application has permission to communicate with the server from which it was deployed.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks.Deployment.ManifestUtilities
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Property SameSiteAccess As String
public string SameSiteAccess { get; set; }
public:
property String^ SameSiteAccess {
    String^ get ();
    void set (String^ value);
}
member SameSiteAccess : string with get, set
function get SameSiteAccess () : String 
function set SameSiteAccess (value : String)

Property Value

Type: System.String
A string indicating the level of same site access permitted. The values can be site or none.
site specifies that the application can call Web services at the same URL from which it was deployed; if deployed from a share, the application has permission to read files from that share.
none specifies that the application can neither access Web services from the same URL from which it was deployed, nor access files from the share from which it was deployed.
"Application" refers to the application for which the manifest is being read (using ReadManifest).

Remarks

"Application" refers to the application for which the manifest is being read. You can read the deployment manifest using ReadManifest or ReadManifest.

.NET Framework Security

See Also

Reference

TrustInfo Class

Microsoft.Build.Tasks.Deployment.ManifestUtilities Namespace

ReadManifest

ReadManifest