Class AssetLogMessage
- Namespace
- Stride.Core.Assets.Diagnostics
- Assembly
- Stride.Core.Assets.dll
Provides a specialized LogMessage to give specific information about an asset.
public class AssetLogMessage : LogMessage, ILogMessage
- Inheritance
-
AssetLogMessage
- Implements
- Inherited Members
Constructors
AssetLogMessage(Package, IReference, LogMessageType, AssetMessageCode)
Initializes a new instance of the AssetLogMessage class.
public AssetLogMessage(Package package, IReference assetReference, LogMessageType type, AssetMessageCode messageCode)
Parameters
packagePackageThe package.
assetReferenceIReferenceThe asset reference.
typeLogMessageTypeThe type.
messageCodeAssetMessageCodeThe message code.
Exceptions
- ArgumentNullException
asset
AssetLogMessage(Package, IReference, LogMessageType, AssetMessageCode, params object[])
Initializes a new instance of the AssetLogMessage class.
public AssetLogMessage(Package package, IReference assetReference, LogMessageType type, AssetMessageCode messageCode, params object[] arguments)
Parameters
packagePackageThe package.
assetReferenceIReferenceThe asset reference.
typeLogMessageTypeThe type.
messageCodeAssetMessageCodeThe message code.
argumentsobject[]The arguments.
Exceptions
- ArgumentNullException
asset
AssetLogMessage(Package, IReference, LogMessageType, string)
Initializes a new instance of the AssetLogMessage class.
public AssetLogMessage(Package package, IReference assetReference, LogMessageType type, string text)
Parameters
packagePackageThe package.
assetReferenceIReferenceThe asset reference.
typeLogMessageTypeThe type.
textstring
Exceptions
- ArgumentNullException
asset
Properties
AssetReference
Gets or sets the asset this message applies to (optional).
public IReference AssetReference { get; set; }
Property Value
- IReference
The asset.
Character
public int Character { get; set; }
Property Value
File
public string File { get; set; }
Property Value
Line
public int Line { get; set; }
Property Value
Member
Gets or sets the member of the asset this message applies to. May be null.
public IMemberDescriptor Member { get; set; }
Property Value
- IMemberDescriptor
The member.
MessageCode
Gets or sets the message code.
public AssetMessageCode MessageCode { get; set; }
Property Value
- AssetMessageCode
The message code.
Package
Gets or sets the package.
public Package Package { get; }
Property Value
- Package
The package.
Related
Gets or sets the related references.
public List<IReference> Related { get; }
Property Value
- List<IReference>
The related.
Methods
From(Package, IReference, ILogMessage, string, int, int)
public static AssetLogMessage From(Package package, IReference assetReference, ILogMessage logMessage, string assetPath, int line = 0, int character = 0)
Parameters
packagePackageassetReferenceIReferencelogMessageILogMessageassetPathstringlineintcharacterint
Returns
ToString()
Returns a string that represents this instance.
public override string ToString()