Click or drag to resize

AuditExtensionsWithUser Method

Append user information

Namespace:  SanteDB.Core.Security.Audit
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 2.2.1
Syntax
public static AuditData WithUser(
	this AuditData me,
	IPrincipal principal = null
)

Parameters

me
Type: SanteDB.Core.AuditingAuditData

[Missing <param name="me"/> documentation for "M:SanteDB.Core.Security.Audit.AuditExtensions.WithUser(SanteDB.Core.Auditing.AuditData,System.Security.Principal.IPrincipal)"]

principal (Optional)
Type: System.Security.PrincipalIPrincipal

[Missing <param name="principal"/> documentation for "M:SanteDB.Core.Security.Audit.AuditExtensions.WithUser(SanteDB.Core.Auditing.AuditData,System.Security.Principal.IPrincipal)"]

Return Value

Type: AuditData

[Missing <returns> documentation for "M:SanteDB.Core.Security.Audit.AuditExtensions.WithUser(SanteDB.Core.Auditing.AuditData,System.Security.Principal.IPrincipal)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AuditData. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also