RegistryWrite Class

MSBuild

Writes a value to the Registry


Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class RegistryWrite
    Inherits Task
C#
public class RegistryWrite : Task
C++
ref class RegistryWrite : Task
J#
public class RegistryWrite extends Task
JScript
public class RegistryWrite extends Task

Example

Write a value to Registry

 Copy Code
            <RegistryWrite 
                KeyName="HKEY_CURRENT_USER\SOFTWARE\MSBuildTasks"
                ValueName="RegistryWrite"
                Value="Test Write" />
            

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      MSBuild.Community.Tasks.RegistryWrite

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.