Class OdfPolicyRule
- Namespace
- OdfKit.Compliance
- Assembly
- OdfKit.dll
Provides the OdfPolicyRule API. 描述合規性規範所宣告的原則或驗證規則。
public sealed class OdfPolicyRule
- Inheritance
-
OdfPolicyRule
- Inherited Members
Constructors
OdfPolicyRule(string, string, OdfIssueSeverity)
Provides the OdfPolicyRule API. 描述合規性規範所宣告的原則或驗證規則。
public OdfPolicyRule(string id, string description, OdfIssueSeverity defaultSeverity = OdfIssueSeverity.Warning)
Parameters
idstring規則的唯一識別碼
descriptionstring規則的說明內容
defaultSeverityOdfIssueSeverity規則回報問題時的預設嚴重性
Properties
DefaultSeverity
Gets the DefaultSeverity value. 取得規則發生問題時的預設嚴重性等級。
public OdfIssueSeverity DefaultSeverity { get; }
Property Value
Description
Gets the Description value. 取得規則的詳細說明。
public string Description { get; }
Property Value
Id
Gets the Id value. 取得穩定的規則唯一識別碼。
public string Id { get; }