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 International Standard ECMA-376 からの次の情報は、このクラスを操作するときに役立ちます。
このドキュメントの読み込み時にダウンロードして解析する必要がある XML スキーマ ファイルの場所を指定します。
c:\contoso.xsdにある XML スキーマによって定義される、http://www.contoso.com名前空間にカスタム XML マークアップを含む WordprocessingML ドキュメントを考えてみましょう。 ドキュメントのスキーマ ライブラリ データには、次の内容が表示されます。
<w:schemaLibrary>
<w:schema w:uri="http://www.contoso.com" w:schemaLocation= "c:\contoso.xsd" />
</w:schemaLibrary>
schemaLocation属性には、この名前空間の使用時に使用される XML スキーマ ファイルの場所であるc:\contoso.xsdが含まれています。
この属性に使用できる値は、XML スキーマ string データ型によって定義されます。