forked from dotnet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddInSecurityLevel.xml
111 lines (100 loc) · 5.35 KB
/
AddInSecurityLevel.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<Type Name="AddInSecurityLevel" FullName="System.AddIn.Hosting.AddInSecurityLevel">
<TypeSignature Language="C#" Value="public enum AddInSecurityLevel" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi serializable sealed AddInSecurityLevel extends System.Enum" />
<TypeSignature Language="DocId" Value="T:System.AddIn.Hosting.AddInSecurityLevel" />
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<summary>Specifies the trust level that is granted to the application domain that an add-in is loaded into.</summary>
<remarks>
<format type="text/markdown"><]
[!code-vb[AddInP3Host#5](~/samples/snippets/visualbasic/VS_Snippets_CLR/addinP3Host/vb/p3host.vb#5)]
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="FullTrust">
<MemberSignature Language="C#" Value="FullTrust" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.AddIn.Hosting.AddInSecurityLevel FullTrust = int32(2)" />
<MemberSignature Language="DocId" Value="F:System.AddIn.Hosting.AddInSecurityLevel.FullTrust" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.AddIn.Hosting.AddInSecurityLevel</ReturnType>
</ReturnValue>
<Docs>
<summary>Use the full trust security level for add-ins that are allowed to read and write to the local file system, create network connections, and read from the registry. This security level grants full access to the add-in's code access security (CAS) by applying the <see cref="F:System.Security.Permissions.PermissionState.Unrestricted" /> field.</summary>
</Docs>
</Member>
<Member MemberName="Host">
<MemberSignature Language="C#" Value="Host" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.AddIn.Hosting.AddInSecurityLevel Host = int32(3)" />
<MemberSignature Language="DocId" Value="F:System.AddIn.Hosting.AddInSecurityLevel.Host" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.AddIn.Hosting.AddInSecurityLevel</ReturnType>
</ReturnValue>
<Docs>
<summary>Use the host security level to give the add-in the same permissions currently granted to the hosting code.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This setting has two purposes:
- It represents the maximum permission set a host can grant to its add-ins.
- It allows a ClickOnce or an Extensible Application Markup Language (XAML) Browser Application (XBAP) host to propagate its site of origin to its add-ins, which enables them to contact the server.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Internet">
<MemberSignature Language="C#" Value="Internet" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.AddIn.Hosting.AddInSecurityLevel Internet = int32(0)" />
<MemberSignature Language="DocId" Value="F:System.AddIn.Hosting.AddInSecurityLevel.Internet" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.AddIn.Hosting.AddInSecurityLevel</ReturnType>
</ReturnValue>
<Docs>
<summary>Use the Internet security level for add-ins that have a low trust level.</summary>
</Docs>
</Member>
<Member MemberName="Intranet">
<MemberSignature Language="C#" Value="Intranet" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.AddIn.Hosting.AddInSecurityLevel Intranet = int32(1)" />
<MemberSignature Language="DocId" Value="F:System.AddIn.Hosting.AddInSecurityLevel.Intranet" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.AddIn.Hosting.AddInSecurityLevel</ReturnType>
</ReturnValue>
<Docs>
<summary>Use the Intranet security level for add-ins that are located on a company's intranet. These add-ins can have a greater trust level because the servers and information are within a company's firewall.</summary>
</Docs>
</Member>
</Members>
</Type>