SchemaReference.DefaultFilename プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SchemaReference.DefaultFilename プロパティの意味・解説 

SchemaReference.DefaultFilename プロパティ

参照先XSD スキーマ保存するときに使用する既定ファイル名取得します

名前空間: System.Web.Services.Discovery
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Public Overrides ReadOnly
 Property DefaultFilename As String
Dim instance As SchemaReference
Dim value As String

value = instance.DefaultFilename
public override string DefaultFilename { get;
 }
/** @property */
public String get_DefaultFilename ()

プロパティ
参照先XSD スキーマファイル保存するときに使用する既定の名前。

使用例使用例
' Reference the schema document.
Dim myStringUrl As String
 = "c:\\Inetpub\\wwwroot\\dataservice.xsd"
Dim myXmlSchema As XmlSchema

' Create the client protocol.
Dim myDiscoveryClientProtocol As DiscoveryClientProtocol
 = _
    New DiscoveryClientProtocol()
myDiscoveryClientProtocol.Credentials = _
    CredentialCache.DefaultCredentials

' Create a schema reference.
Dim mySchemaReferenceNoParam As SchemaReference
 = New SchemaReference()

Dim mySchemaReference As SchemaReference =
 _
    New SchemaReference(myStringUrl)

' Set the client protocol.
mySchemaReference.ClientProtocol = myDiscoveryClientProtocol

' Access the default file name associated with the schema reference.
Console.WriteLine("Default filename is : " & _
    mySchemaReference.DefaultFilename)

' Access the namespace associated with schema reference class.
Console.WriteLine("Namespace is : " & SchemaReference.Namespace)

Dim myStream As FileStream = _
    New FileStream(myStringUrl, FileMode.OpenOrCreate)

' Read the document in a stream.
mySchemaReference.ReadDocument(myStream)

' Get the schema of the referenced document.
myXmlSchema = mySchemaReference.Schema

Console.WriteLine("Reference is : " & mySchemaReference.Ref)

Console.WriteLine("Target namespace (default empty) is : "
 & _
    mySchemaReference.TargetNamespace)

Console.WriteLine("URL is : " & mySchemaReference.Url)

' Write the document in the stream.
mySchemaReference.WriteDocument(myXmlSchema, myStream)

myStream.Close()
mySchemaReference = Nothing
// Reference the schema document.
string myStringUrl = "c:\\Inetpub\\wwwroot\\dataservice.xsd";
XmlSchema myXmlSchema;

// Create the client protocol.
DiscoveryClientProtocol myDiscoveryClientProtocol = 
    new DiscoveryClientProtocol();
myDiscoveryClientProtocol.Credentials = 
    CredentialCache.DefaultCredentials;

//  Create a schema reference.
SchemaReference mySchemaReferenceNoParam = new SchemaReference();

SchemaReference mySchemaReference = new SchemaReference(myStringUrl);
         
// Set the client protocol.
mySchemaReference.ClientProtocol = myDiscoveryClientProtocol;

// Access the default file name associated with the schema reference.
Console.WriteLine("Default filename is : " + 
    mySchemaReference.DefaultFilename);

// Access the namespace associated with schema reference class.
Console.WriteLine("Namespace is : " + SchemaReference.Namespace);

FileStream myStream = 
    new FileStream(myStringUrl,FileMode.OpenOrCreate); 

// Read the document in a stream.
mySchemaReference.ReadDocument(myStream);

// Get the schema of referenced document.
myXmlSchema = mySchemaReference.Schema;

Console.WriteLine("Reference is : " + mySchemaReference.Ref);      

Console.WriteLine("Target namespace (default
 empty) is : " + 
    mySchemaReference.TargetNamespace);

Console.WriteLine("URL is : " + mySchemaReference.Url);

// Write the document in the stream.
mySchemaReference.WriteDocument(myXmlSchema,myStream);

myStream.Close();
mySchemaReference = null;

// Reference the schema document.
String^ myStringUrl = "c:\\Inetpub\\wwwroot\\dataservice.xsd";
XmlSchema^ myXmlSchema;

// Create the client protocol.
DiscoveryClientProtocol^ myDiscoveryClientProtocol = gcnew DiscoveryClientProtocol;
myDiscoveryClientProtocol->Credentials = CredentialCache::DefaultCredentials;

//  Create a schema reference.
SchemaReference^ mySchemaReferenceNoParam = gcnew SchemaReference;
SchemaReference^ mySchemaReference = gcnew SchemaReference( myStringUrl );

// Set the client protocol.
mySchemaReference->ClientProtocol = myDiscoveryClientProtocol;

// Access the default file name associated with the schema reference.
Console::WriteLine( "Default filename is : {0}", mySchemaReference->DefaultFilename
 );

// Access the namespace associated with schema reference class.
Console::WriteLine( "Namespace is : {0}", SchemaReference::Namespace );
FileStream^ myStream = gcnew FileStream( myStringUrl,FileMode::OpenOrCreate );

// Read the document in a stream.
mySchemaReference->ReadDocument( myStream );

// Get the schema of referenced document.
myXmlSchema = mySchemaReference->Schema;
Console::WriteLine( "Reference is : {0}", mySchemaReference->Ref );
Console::WriteLine( "Target namespace (default
 empty) is : {0}", mySchemaReference->TargetNamespace );
Console::WriteLine( "URL is : {0}", mySchemaReference->Url );

// Write the document in the stream.
mySchemaReference->WriteDocument( myXmlSchema, myStream );
myStream->Close();
mySchemaReference = nullptr;

// Reference the schema document.
String myStringUrl = "c:\\Inetpub\\wwwroot\\dataservice.xsd";
XmlSchema myXmlSchema;
// Create the client protocol.
DiscoveryClientProtocol myDiscoveryClientProtocol = 
    new DiscoveryClientProtocol();
myDiscoveryClientProtocol.set_Credentials(CredentialCache.
    get_DefaultCredentials());
//  Create a schema reference.
SchemaReference mySchemaReferenceNoParam = new SchemaReference();
SchemaReference mySchemaReference = new SchemaReference(myStringUrl);
// Set the client protocol.
mySchemaReference.set_ClientProtocol(myDiscoveryClientProtocol);
// Access the default file name associated with the schema reference.
Console.WriteLine("Default filename is : " + mySchemaReference.
    get_DefaultFilename());
// Access the namespace associated with schema reference class.
Console.WriteLine("Namespace is : " + SchemaReference.Namespace);
FileStream myStream = new FileStream(myStringUrl, 
    FileMode.OpenOrCreate);
// Read the document in a stream.
mySchemaReference.ReadDocument(myStream);
// Get the schema of referenced document.
myXmlSchema = mySchemaReference.get_Schema();
Console.WriteLine("Reference is : " + mySchemaReference.get_Ref());
Console.WriteLine("Target namespace (default
 empty) is : " 
    + mySchemaReference.get_TargetNamespace());
Console.WriteLine("URL is : " + mySchemaReference.get_Url());
// Write the document in the stream.
mySchemaReference.WriteDocument(myXmlSchema, myStream);
myStream.Close();
mySchemaReference = null;
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SchemaReference クラス
SchemaReference メンバ
System.Web.Services.Discovery 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

SchemaReference.DefaultFilename プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SchemaReference.DefaultFilename プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS