Delen via


LogEntry.Clone Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Creates a new LogEntry that is a copy of the current instance.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Logging
Assembly:  Microsoft.Practices.EnterpriseLibrary.Logging (in Microsoft.Practices.EnterpriseLibrary.Logging.dll)

Syntax

'Declaration
PublicFunctionCloneAs Object
public Object Clone()
public:
virtual Object^ Clone() sealed
publicfinalfunctionClone() : Object

Return Value

A new LogEntry that is a copy of the current instance.

Implements

ICloneable.Clone()

Remarks

If the dictionary contained in ExtendedProperties implements ICloneable, the resulting LogEntry will have its ExtendedProperties set by calling Clone(). Otherwise the resulting LogEntry will have its ExtendedProperties set to nulla null reference (Nothing in Visual Basic).

See Also

LogEntry Class

Microsoft.Practices.EnterpriseLibrary.Logging Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.