Schema.SchemaLocation プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
カスタム XML スキーマの場所
スキーマ内の次の属性を表します: sl:schemaLocation
[DocumentFormat.OpenXml.SchemaAttr(25, "schemaLocation")]
public DocumentFormat.OpenXml.StringValue SchemaLocation { get; set; }
public DocumentFormat.OpenXml.StringValue SchemaLocation { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(25, "schemaLocation")]
public DocumentFormat.OpenXml.StringValue? SchemaLocation { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("sl:schemaLocation")]
public DocumentFormat.OpenXml.StringValue? SchemaLocation { get; set; }
public DocumentFormat.OpenXml.StringValue? SchemaLocation { get; set; }
member this.SchemaLocation : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(25, "schemaLocation")>]
member this.SchemaLocation : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("sl:schemaLocation")>]
member this.SchemaLocation : DocumentFormat.OpenXml.StringValue with get, set
Public Property SchemaLocation As StringValue
プロパティ値
StringValue を返します。
- 属性
注釈
ECMA 国際 標準 ECMA-376 の次の情報は、このクラスを操作するときに役立ちます。
このドキュメントの読み込み時にダウンロードして解析する必要がある XML スキーマ ファイルの場所を指定します。
名前空間のカスタム XML マークアップ http://www.contoso.com
を含む WordprocessingML ドキュメントを考えてみましょう。これは、 にある XML スキーマ c:\contoso.xsd
によって定義されます。 ドキュメントのスキーマ ライブラリ データには、次の内容が表示されます。
<w:schemaLibrary>
<w:schema w:uri="http://www.contoso.com" w:schemaLocation= "c:\contoso.xsd" />
</w:schemaLibrary>
属性 schemaLocation
には、 c:\contoso.xsd
この名前空間の使用時に使用される XML スキーマ ファイルの場所が含まれます。
この属性に使用できる値は、XML スキーマ string
データ型によって定義されます。