Copies the property values of an EventLog component that are required at install time for an event log.
[Visual Basic] Overrides Public Sub CopyFromComponent( _ ByVal component As IComponent _ ) [C#] public override void CopyFromComponent( IComponent component ); [C++] public: void CopyFromComponent( IComponent* component ); [JScript] public override function CopyFromComponent( component : IComponent );
|ArgumentException||The specified component is not an EventLog.
The component specified by the component parameter must be an EventLog; otherwise, an exception is thrown.
Typically, you do not call the methods of the EventLogInstaller from within your code; they are generally called only by the InstallUtil.exe installation utility. CopyFromComponent is used by the installation utility to set the property values for the EventLogInstaller to the values of an existing EventLog.
If the Log of the EventLog that is passed in is an empty string (""), you must set the Log property to a nonempty value before the installer executes.
Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
.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