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

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

ServiceDescription.Types プロパティ

ServiceDescription に格納されTypes取得または設定します

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

解説解説
使用例使用例
myServiceDescription.Types.Schemas.Remove( _
   myServiceDescription.Types.Schemas(0))
Dim myXmlSchema As New XmlSchema()
myXmlSchema.AttributeFormDefault = XmlSchemaForm.Qualified
myXmlSchema.ElementFormDefault = XmlSchemaForm.Qualified
myXmlSchema.TargetNamespace = myServiceDescription.TargetNamespace

Dim myXmlElement1 As New
 XmlSchemaElement()
myXmlElement1.Name = "Add"

Dim myXmlSchemaComplexType As New
 XmlSchemaComplexType()
Dim myXmlSchemaSequence As New
 XmlSchemaSequence()
myXmlSchemaSequence.Items.Add(CreateComplexTypeXmlElement( _
   "1", "1", "a",
 New XmlQualifiedName("s:float")))

myXmlSchemaSequence.Items.Add(CreateComplexTypeXmlElement( _
   "1", "1", "b",
 New XmlQualifiedName("s:float")))

myXmlSchemaComplexType.Particle = myXmlSchemaSequence
myXmlElement1.SchemaType = myXmlSchemaComplexType
myXmlSchema.Items.Add(myXmlElement1)

Dim myXmlElement2 As New
 XmlSchemaElement()
myXmlElement2.Name = "AddResponse"
myXmlSchemaComplexType = New XmlSchemaComplexType()
myXmlSchemaSequence = New XmlSchemaSequence()
myXmlSchemaSequence.Items.Add(CreateComplexTypeXmlElement( _
   "1", "1", "AddResult",
 New XmlQualifiedName("s:float")))

myXmlSchemaComplexType.Particle = myXmlSchemaSequence
myXmlElement2.SchemaType = myXmlSchemaComplexType
myXmlSchema.Items.Add(myXmlElement2)

Dim myXmlElement3 As New
 XmlSchemaElement()
myXmlElement3.Name = "Subtract"
myXmlSchemaComplexType = New XmlSchemaComplexType()
myXmlSchemaSequence = New XmlSchemaSequence()
myXmlSchemaSequence.Items.Add(CreateComplexTypeXmlElement( _
   "1", "1", "a",
 New XmlQualifiedName("s:float")))

myXmlSchemaSequence.Items.Add(CreateComplexTypeXmlElement( _
   "1", "1", "b",
 New XmlQualifiedName("s:float")))

myXmlSchemaComplexType.Particle = myXmlSchemaSequence
myXmlElement3.SchemaType = myXmlSchemaComplexType
myXmlSchema.Items.Add(myXmlElement3)

Dim myXmlElement4 As New
 XmlSchemaElement()
myXmlElement4.Name = "SubtractResponse"
myXmlSchemaComplexType = New XmlSchemaComplexType()
myXmlSchemaSequence = New XmlSchemaSequence()
myXmlSchemaSequence.Items.Add(CreateComplexTypeXmlElement( _
   "1", "1", "SubtractResult",
 New XmlQualifiedName("s:int")))

myXmlSchemaComplexType.Particle = myXmlSchemaSequence
myXmlElement4.SchemaType = myXmlSchemaComplexType
myXmlSchema.Items.Add(myXmlElement4)

' Add the schemas to the Types property of the ServiceDescription.
myServiceDescription.Types.Schemas.Add(myXmlSchema)
myServiceDescription.Types.Schemas.Remove(
   myServiceDescription.Types.Schemas[0]);
XmlSchema myXmlSchema = new XmlSchema();
myXmlSchema.AttributeFormDefault = XmlSchemaForm.Qualified;
myXmlSchema.ElementFormDefault = XmlSchemaForm.Qualified;
myXmlSchema.TargetNamespace = myServiceDescription.TargetNamespace;

XmlSchemaElement myXmlElement1 = new XmlSchemaElement();
myXmlElement1.Name="Add";

XmlSchemaComplexType myXmlSchemaComplexType = 
   new XmlSchemaComplexType();
XmlSchemaSequence myXmlSchemaSequence = new XmlSchemaSequence();
myXmlSchemaSequence.Items.Add(CreateComplexTypeXmlElement(
   "1", "1", "a", new XmlQualifiedName("s:float")));

myXmlSchemaSequence.Items.Add(CreateComplexTypeXmlElement(
   "1", "1", "b", new XmlQualifiedName("s:float")));
                                     
myXmlSchemaComplexType.Particle = myXmlSchemaSequence;
myXmlElement1.SchemaType = myXmlSchemaComplexType;
myXmlSchema.Items.Add(myXmlElement1);

XmlSchemaElement myXmlElement2 = new XmlSchemaElement();
myXmlElement2.Name = "AddResponse";
myXmlSchemaComplexType = new XmlSchemaComplexType();
myXmlSchemaSequence = new XmlSchemaSequence();
myXmlSchemaSequence.Items.Add(CreateComplexTypeXmlElement(
   "1", "1", "AddResult", new XmlQualifiedName("s:float")));
                       
myXmlSchemaComplexType.Particle = myXmlSchemaSequence;
myXmlElement2.SchemaType=myXmlSchemaComplexType;
myXmlSchema.Items.Add(myXmlElement2);

XmlSchemaElement myXmlElement3 = new XmlSchemaElement();
myXmlElement3.Name="Subtract";
myXmlSchemaComplexType = new XmlSchemaComplexType();
myXmlSchemaSequence = new XmlSchemaSequence();
myXmlSchemaSequence.Items.Add(CreateComplexTypeXmlElement(
   "1", "1", "a", new XmlQualifiedName("s:float")));
                                     
myXmlSchemaSequence.Items.Add(CreateComplexTypeXmlElement(
   "1", "1", "b", new XmlQualifiedName("s:float")));
                                      
myXmlSchemaComplexType.Particle = myXmlSchemaSequence;
myXmlElement3.SchemaType=myXmlSchemaComplexType;
myXmlSchema.Items.Add(myXmlElement3);

XmlSchemaElement myXmlElement4 = new XmlSchemaElement();
myXmlElement4.Name="SubtractResponse";
myXmlSchemaComplexType = new XmlSchemaComplexType();
myXmlSchemaSequence = new XmlSchemaSequence();
myXmlSchemaSequence.Items.Add(CreateComplexTypeXmlElement(
   "1", "1", "SubtractResult", new
 XmlQualifiedName("s:int")));
                  
myXmlSchemaComplexType.Particle = myXmlSchemaSequence;
myXmlElement4.SchemaType = myXmlSchemaComplexType;
myXmlSchema.Items.Add(myXmlElement4);

// Add the schemas to the Types property of the ServiceDescription.
myServiceDescription.Types.Schemas.Add(myXmlSchema);
myServiceDescription->Types->Schemas->Remove( myServiceDescription->Types->Schemas[
 0 ] );
XmlSchema^ myXmlSchema = gcnew XmlSchema;
myXmlSchema->AttributeFormDefault = XmlSchemaForm::Qualified;
myXmlSchema->ElementFormDefault = XmlSchemaForm::Qualified;
myXmlSchema->TargetNamespace = myServiceDescription->TargetNamespace;
XmlSchemaElement^ myXmlElement1 = gcnew XmlSchemaElement;
myXmlElement1->Name = "Add";
XmlSchemaComplexType^ myXmlSchemaComplexType = gcnew XmlSchemaComplexType;
XmlSchemaSequence^ myXmlSchemaSequence = gcnew XmlSchemaSequence;
myXmlSchemaSequence->Items->Add( CreateComplexTypeXmlElement( "1",
 "1", "a", gcnew XmlQualifiedName( "s:float"
 ) ) );
myXmlSchemaSequence->Items->Add( CreateComplexTypeXmlElement( "1",
 "1", "b", gcnew XmlQualifiedName( "s:float"
 ) ) );
myXmlSchemaComplexType->Particle = myXmlSchemaSequence;
myXmlElement1->SchemaType = myXmlSchemaComplexType;
myXmlSchema->Items->Add( myXmlElement1 );
XmlSchemaElement^ myXmlElement2 = gcnew XmlSchemaElement;
myXmlElement2->Name = "AddResponse";
myXmlSchemaComplexType = gcnew XmlSchemaComplexType;
myXmlSchemaSequence = gcnew XmlSchemaSequence;
myXmlSchemaSequence->Items->Add( CreateComplexTypeXmlElement( "1",
 "1", "AddResult", gcnew XmlQualifiedName( "s:float"
 ) ) );
myXmlSchemaComplexType->Particle = myXmlSchemaSequence;
myXmlElement2->SchemaType = myXmlSchemaComplexType;
myXmlSchema->Items->Add( myXmlElement2 );
XmlSchemaElement^ myXmlElement3 = gcnew XmlSchemaElement;
myXmlElement3->Name = "Subtract";
myXmlSchemaComplexType = gcnew XmlSchemaComplexType;
myXmlSchemaSequence = gcnew XmlSchemaSequence;
myXmlSchemaSequence->Items->Add( CreateComplexTypeXmlElement( "1",
 "1", "a", gcnew XmlQualifiedName( "s:float"
 ) ) );
myXmlSchemaSequence->Items->Add( CreateComplexTypeXmlElement( "1",
 "1", "b", gcnew XmlQualifiedName( "s:float"
 ) ) );
myXmlSchemaComplexType->Particle = myXmlSchemaSequence;
myXmlElement3->SchemaType = myXmlSchemaComplexType;
myXmlSchema->Items->Add( myXmlElement3 );
XmlSchemaElement^ myXmlElement4 = gcnew XmlSchemaElement;
myXmlElement4->Name = "SubtractResponse";
myXmlSchemaComplexType = gcnew XmlSchemaComplexType;
myXmlSchemaSequence = gcnew XmlSchemaSequence;
myXmlSchemaSequence->Items->Add( CreateComplexTypeXmlElement( "1",
 "1", "SubtractResult", gcnew XmlQualifiedName( "s:int"
 ) ) );
myXmlSchemaComplexType->Particle = myXmlSchemaSequence;
myXmlElement4->SchemaType = myXmlSchemaComplexType;
myXmlSchema->Items->Add( myXmlElement4 );

// Add the schemas to the Types property of the ServiceDescription.
myServiceDescription->Types->Schemas->Add( myXmlSchema );
myServiceDescription.get_Types().get_Schemas().Remove(
    myServiceDescription.get_Types().get_Schemas().get_Item(0));
XmlSchema myXmlSchema = new XmlSchema();
myXmlSchema.set_AttributeFormDefault(XmlSchemaForm.Qualified);
myXmlSchema.set_ElementFormDefault(XmlSchemaForm.Qualified);
myXmlSchema.set_TargetNamespace(myServiceDescription.
    get_TargetNamespace());

XmlSchemaElement myXmlElement1 = new XmlSchemaElement();
myXmlElement1.set_Name("Add");

XmlSchemaComplexType myXmlSchemaComplexType 
    = new XmlSchemaComplexType();
XmlSchemaSequence myXmlSchemaSequence = new XmlSchemaSequence();
myXmlSchemaSequence.get_Items().Add(CreateComplexTypeXmlElement(
    "1", "1", "a", new XmlQualifiedName("s:float")));

myXmlSchemaSequence.get_Items().Add(CreateComplexTypeXmlElement(
    "1", "1", "b", new XmlQualifiedName("s:float")));

myXmlSchemaComplexType.set_Particle(myXmlSchemaSequence);
myXmlElement1.set_SchemaType(myXmlSchemaComplexType);
myXmlSchema.get_Items().Add(myXmlElement1);

XmlSchemaElement myXmlElement2 = new XmlSchemaElement();
myXmlElement2.set_Name("AddResponse");
myXmlSchemaComplexType = new XmlSchemaComplexType();
myXmlSchemaSequence = new XmlSchemaSequence();
myXmlSchemaSequence.get_Items().Add(CreateComplexTypeXmlElement(
    "1", "1", "AddResult", new XmlQualifiedName("s:float")));

myXmlSchemaComplexType.set_Particle(myXmlSchemaSequence);
myXmlElement2.set_SchemaType(myXmlSchemaComplexType);
myXmlSchema.get_Items().Add(myXmlElement2);

XmlSchemaElement myXmlElement3 = new XmlSchemaElement();
myXmlElement3.set_Name("Subtract");
myXmlSchemaComplexType = new XmlSchemaComplexType();
myXmlSchemaSequence = new XmlSchemaSequence();
myXmlSchemaSequence.get_Items().Add(CreateComplexTypeXmlElement(
    "1", "1", "a", new XmlQualifiedName("s:float")));

myXmlSchemaSequence.get_Items().Add(CreateComplexTypeXmlElement(
    "1", "1", "b", new XmlQualifiedName("s:float")));

myXmlSchemaComplexType.set_Particle(myXmlSchemaSequence);
myXmlElement3.set_SchemaType(myXmlSchemaComplexType);
myXmlSchema.get_Items().Add(myXmlElement3);

XmlSchemaElement myXmlElement4 = new XmlSchemaElement();
myXmlElement4.set_Name("SubtractResponse");
myXmlSchemaComplexType = new XmlSchemaComplexType();
myXmlSchemaSequence = new XmlSchemaSequence();
myXmlSchemaSequence.get_Items().Add(CreateComplexTypeXmlElement(
    "1", "1", "SubtractResult", new
 XmlQualifiedName("s:int")));

myXmlSchemaComplexType.set_Particle(myXmlSchemaSequence);
myXmlElement4.set_SchemaType(myXmlSchemaComplexType);
myXmlSchema.get_Items().Add(myXmlElement4);

// Add the schemas to the Types property of the ServiceDescription.
myServiceDescription.get_Types().get_Schemas().Add(myXmlSchema);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServiceDescription クラス
ServiceDescription メンバ
System.Web.Services.Description 名前空間



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS