EmbedTypeLibrary.KeyContainer Property (2007 System)
Gets or sets the path to the cryptographic key container.
Namespace: Microsoft.VisualStudio.Tools.Office.BuildTasks
Assembly: Microsoft.VisualStudio.Tools.Office.BuildTasks (in Microsoft.VisualStudio.Tools.Office.BuildTasks.dll)
Syntax
'Declaration
Public Property KeyContainer As String
'Usage
Dim instance As EmbedTypeLibrary
Dim value As String
value = instance.KeyContainer
instance.KeyContainer = value
public string KeyContainer { get; set; }
public:
property String^ KeyContainer {
String^ get ();
void set (String^ value);
}
public function get KeyContainer () : String
public function set KeyContainer (value : String)
Property Value
Type: System.String
A String that represents the path to the cryptographic key container.
Remarks
To generate a key file, type the following command at the Visual Studio command prompt: sn -k file
To install the key file into a container, type the following command: sn -kfile containerName
Use either the KeyFile or the KeyContainer for strong name signing of assemblies.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.