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
idstring規範的唯一識別碼
jurisdictionstring此規範適用的管轄區域或範圍
authoritystring此規範的制訂或權威機構名稱
sourceUrlUri官方來源連結的網址
sourceDatestring來源發布日期,採用 ISO 日期格式字串
authorityLevelOdfPolicyAuthorityLevel規範的權威等級
verificationStatusOdfProfileVerificationStatus來源的驗證狀態
supportedVersionsOdfVersionRange此規範所支援的 ODF 版本範圍
allowedExtensionsIEnumerable<string>允許使用的檔案副檔名清單
allowedMimeTypesIEnumerable<string>允許使用的 MIME 類型清單
rulesIEnumerable<OdfPolicyRule>此規範包含的合規性規則清單
targetCultureCultureInfo此規範的目標文化特性,用於自動語系偵測
Properties
AllowedExtensions
Gets the AllowedExtensions value. 取得允許使用的副檔名唯讀清單。
public IReadOnlyList<string> AllowedExtensions { get; }
Property Value
AllowedMimeTypes
Gets the AllowedMimeTypes value. 取得允許使用的 MIME 類型唯讀清單。
public IReadOnlyList<string> AllowedMimeTypes { get; }
Property Value
Authority
Gets the Authority value. 取得此規範的權威機構名稱。
public string Authority { get; }
Property Value
AuthorityLevel
Gets the AuthorityLevel value. 取得規範的權威等級。
public OdfPolicyAuthorityLevel AuthorityLevel { get; }
Property Value
Id
Gets the Id value. 取得穩定的規範唯一識別碼。
public string Id { get; }
Property Value
Jurisdiction
Gets the Jurisdiction value. 取得此規範適用的管轄區域。
public string Jurisdiction { get; }
Property Value
Rules
Gets the Rules value. 取得此規範所包含的合規性規則唯讀清單。
public IReadOnlyList<OdfPolicyRule> Rules { get; }
Property Value
SourceDate
Gets the SourceDate value. 取得來源發布日期。
public string? SourceDate { get; }
Property Value
SourceUrl
Gets the SourceUrl value. 取得此規範的官方來源網址。
public Uri? SourceUrl { get; }
Property Value
- Uri
SupportedVersions
Gets the SupportedVersions value. 取得此規範支援的 ODF 版本範圍。
public OdfVersionRange SupportedVersions { get; }
Property Value
TargetCulture
Gets the TargetCulture value. 取得此規範的目標文化特性,用於自動語系偵測。
public CultureInfo? TargetCulture { get; }
Property Value
VerificationStatus
Gets the VerificationStatus value. 取得來源驗證狀態。
public OdfProfileVerificationStatus VerificationStatus { get; }