Table of Contents

Class OdfComplianceProfile

Namespace
OdfKit.Compliance
Assembly
OdfKit.dll

Provides the OdfComplianceProfile API. 描述 ODF 合規性規範及其政策中繼資料。

public sealed class OdfComplianceProfile
Inheritance
OdfComplianceProfile
Inherited Members

Constructors

OdfComplianceProfile(string, string, string, Uri?, string?, OdfPolicyAuthorityLevel, OdfProfileVerificationStatus, OdfVersionRange, IEnumerable<string>, IEnumerable<string>, IEnumerable<OdfPolicyRule>, CultureInfo?)

Provides the OdfComplianceProfile API. 描述 ODF 合規性規範及其政策中繼資料。

public OdfComplianceProfile(string id, string jurisdiction, string authority, Uri? sourceUrl, string? sourceDate, OdfPolicyAuthorityLevel authorityLevel, OdfProfileVerificationStatus verificationStatus, OdfVersionRange supportedVersions, IEnumerable<string> allowedExtensions, IEnumerable<string> allowedMimeTypes, IEnumerable<OdfPolicyRule> rules, CultureInfo? targetCulture = null)

Parameters

id string

規範的唯一識別碼

jurisdiction string

此規範適用的管轄區域或範圍

authority string

此規範的制訂或權威機構名稱

sourceUrl Uri

官方來源連結的網址

sourceDate string

來源發布日期,採用 ISO 日期格式字串

authorityLevel OdfPolicyAuthorityLevel

規範的權威等級

verificationStatus OdfProfileVerificationStatus

來源的驗證狀態

supportedVersions OdfVersionRange

此規範所支援的 ODF 版本範圍

allowedExtensions IEnumerable<string>

允許使用的檔案副檔名清單

allowedMimeTypes IEnumerable<string>

允許使用的 MIME 類型清單

rules IEnumerable<OdfPolicyRule>

此規範包含的合規性規則清單

targetCulture CultureInfo

此規範的目標文化特性,用於自動語系偵測

Properties

AllowedExtensions

Gets the AllowedExtensions value. 取得允許使用的副檔名唯讀清單。

public IReadOnlyList<string> AllowedExtensions { get; }

Property Value

IReadOnlyList<string>

AllowedMimeTypes

Gets the AllowedMimeTypes value. 取得允許使用的 MIME 類型唯讀清單。

public IReadOnlyList<string> AllowedMimeTypes { get; }

Property Value

IReadOnlyList<string>

Authority

Gets the Authority value. 取得此規範的權威機構名稱。

public string Authority { get; }

Property Value

string

AuthorityLevel

Gets the AuthorityLevel value. 取得規範的權威等級。

public OdfPolicyAuthorityLevel AuthorityLevel { get; }

Property Value

OdfPolicyAuthorityLevel

Id

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

public string Id { get; }

Property Value

string

Jurisdiction

Gets the Jurisdiction value. 取得此規範適用的管轄區域。

public string Jurisdiction { get; }

Property Value

string

Rules

Gets the Rules value. 取得此規範所包含的合規性規則唯讀清單。

public IReadOnlyList<OdfPolicyRule> Rules { get; }

Property Value

IReadOnlyList<OdfPolicyRule>

SourceDate

Gets the SourceDate value. 取得來源發布日期。

public string? SourceDate { get; }

Property Value

string

SourceUrl

Gets the SourceUrl value. 取得此規範的官方來源網址。

public Uri? SourceUrl { get; }

Property Value

Uri

SupportedVersions

Gets the SupportedVersions value. 取得此規範支援的 ODF 版本範圍。

public OdfVersionRange SupportedVersions { get; }

Property Value

OdfVersionRange

TargetCulture

Gets the TargetCulture value. 取得此規範的目標文化特性,用於自動語系偵測。

public CultureInfo? TargetCulture { get; }

Property Value

CultureInfo

VerificationStatus

Gets the VerificationStatus value. 取得來源驗證狀態。

public OdfProfileVerificationStatus VerificationStatus { get; }

Property Value

OdfProfileVerificationStatus