RegistrationAttribute.RegistrationContext.CreateKey Method
Creates a new registration key by name.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.Immutable.10.0 (in Microsoft.VisualStudio.Shell.Immutable.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Syntax
'Déclaration
Public MustOverride Function CreateKey ( _
name As String _
) As RegistrationAttribute..::..Key
'Utilisation
Dim instance As RegistrationAttribute..::..RegistrationContext
Dim name As String
Dim returnValue As RegistrationAttribute..::..Key
returnValue = instance.CreateKey(name)
public abstract RegistrationAttribute..::..Key CreateKey(
string name
)
public:
virtual RegistrationAttribute..::..Key^ CreateKey(
String^ name
) abstract
abstract CreateKey :
name:string -> RegistrationAttribute..::..Key
public abstract function CreateKey(
name : String
) : RegistrationAttribute..::..Key
Parameters
- name
Type: System.String
The name of the key to create.
Return Value
Type: Microsoft.VisualStudio.Shell.RegistrationAttribute.Key
A new RegistrationAttribute.Key object.
Remarks
The new RegistrationAttribute.Key object can be used to set registration information. The key is created under the correct Visual Studio registry root. This method is typically called from within the Register of a class derived from RegistrationAttribute.
.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.
See Also
Reference
RegistrationAttribute.RegistrationContext Class
RegistrationAttribute.RegistrationContext Members
Microsoft.VisualStudio.Shell Namespace