Table of Contents

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

id string

規則的唯一識別碼

description string

規則的說明內容

defaultSeverity OdfIssueSeverity

規則回報問題時的預設嚴重性

Properties

DefaultSeverity

Gets the DefaultSeverity value. 取得規則發生問題時的預設嚴重性等級。

public OdfIssueSeverity DefaultSeverity { get; }

Property Value

OdfIssueSeverity

Description

Gets the Description value. 取得規則的詳細說明。

public string Description { get; }

Property Value

string

Id

Gets the Id value. 取得穩定的規則唯一識別碼。

public string Id { get; }

Property Value

string