Partager via


RegistrationAttribute.RegistrationContext.Log Property

Gets a TextWriter object that can be used to log events during registration.

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 ReadOnly Property Log As TextWriter
    Get
'Utilisation
Dim instance As RegistrationAttribute..::..RegistrationContext
Dim value As TextWriter

value = instance.Log
public abstract TextWriter Log { get; }
public:
virtual property TextWriter^ Log {
    TextWriter^ get () abstract;
}
abstract Log : TextWriter
abstract function get Log () : TextWriter

Property Value

Type: System.IO.TextWriter
A TextWriter object.

Remarks

Text sent to the TextWriter object is presented directly to the user. If possible, the text should be localized.

Registration tools can use this information in different ways. RegPkg.exe displays this information on the command line, while the Windows Installer can choose to save it in the installation log.

.NET Framework Security

See Also

Reference

RegistrationAttribute.RegistrationContext Class

RegistrationAttribute.RegistrationContext Members

Microsoft.VisualStudio.Shell Namespace

RegistrationAttribute.RegistrationContext