Click or drag to resize

AuditExtensionsWithPrincipal Method

Append principal information to the audit. Principals can represent a user, application or device, and any combination thereof. For example, a single principal can be composed of a User, Application and Device together.

Namespace:  SanteDB.Core.Security.Audit
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
public static IAuditBuilder WithPrincipal(
	this IAuditBuilder me,
	IPrincipal principal = null
)

Parameters

me
Type: SanteDB.Core.Security.AuditIAuditBuilder

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

principal (Optional)
Type: System.Security.PrincipalIPrincipal

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

Return Value

Type: IAuditBuilder

[Missing <returns> documentation for "M:SanteDB.Core.Security.Audit.AuditExtensions.WithPrincipal(SanteDB.Core.Security.Audit.IAuditBuilder,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 IAuditBuilder. 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