184 lines
9.0 KiB
XML
184 lines
9.0 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<Type Name="ComUdtElement" FullName="System.ServiceModel.Configuration.ComUdtElement">
|
||
|
<TypeSignature Language="C#" Value="public sealed class ComUdtElement : System.Configuration.ConfigurationElement" />
|
||
|
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed ComUdtElement extends System.Configuration.ConfigurationElement" />
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyName>System.ServiceModel</AssemblyName>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<Base>
|
||
|
<BaseTypeName>System.Configuration.ConfigurationElement</BaseTypeName>
|
||
|
</Base>
|
||
|
<Interfaces />
|
||
|
<Docs>
|
||
|
<remarks>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>The COM+ integration runtime creates services by inspecting the type library. When a COM+ component contains methods that pass a VARIANT, the system cannot determine the actual types to be passed prior to runtime. Therefore, when you attempt to pass a User Defined Type (UDT) within a VARIANT, it fails because it is not a known type for serialization. </para>
|
||
|
<para>To circumvent this problem, you can add the UDTs to the configuration file so that they can be included as known types on the appropriate service contract. In order to do so, you have to uniquely identify the UDT and the contract(s), that is, the original COM interface(s) that uses it.</para>
|
||
|
<para>The following example demonstrates adding two specific UDTs to the <userDefinedTypes> section of the configuration file for this purpose.</para>
|
||
|
<para>code reference: S_UEComUdtElement#0</para>
|
||
|
<para>The attributes of the <userDefinedType> element are defined as follows:</para>
|
||
|
<list type="bullet">
|
||
|
<item>
|
||
|
<para>typeName: an optional attribute that provides the readable type name. This is not used by the runtime but helps a reader to distinguish the types.</para>
|
||
|
</item>
|
||
|
<item>
|
||
|
<para>typeLibID: a GUID string that specifies the registered type library that defines the type.</para>
|
||
|
</item>
|
||
|
<item>
|
||
|
<para>typeLibVersion: a string that specifies the type library version that defines the type.</para>
|
||
|
</item>
|
||
|
<item>
|
||
|
<para>typeDefID: a GUID string that specifies the specific UDT type within the registered type library.</para>
|
||
|
</item>
|
||
|
</list>
|
||
|
<para>When the service is initialized, the COM+ integration runtime looks up the specified types and adds them to the known types collection for the specified contracts.</para>
|
||
|
</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Represents a User Defined Type (UDT) that is to be included in the service contract. This class cannot be inherited.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
<Members>
|
||
|
<Member MemberName=".ctor">
|
||
|
<MemberSignature Language="C#" Value="public ComUdtElement ();" />
|
||
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
|
||
|
<MemberType>Constructor</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<Parameters />
|
||
|
<Docs>
|
||
|
<remarks>To be added.</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Initializes a new instance of the <see cref="T:System.ServiceModel.Configuration.ComUdtElement" /> class. </para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="Name">
|
||
|
<MemberSignature Language="C#" Value="public string Name { get; set; }" />
|
||
|
<MemberSignature Language="ILAsm" Value=".property instance string Name" />
|
||
|
<MemberType>Property</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<Attributes>
|
||
|
<Attribute>
|
||
|
<AttributeName>System.Configuration.ConfigurationProperty("name", DefaultValue=Mono.Cecil.CustomAttributeArgument, Options=System.Configuration.ConfigurationPropertyOptions.None)</AttributeName>
|
||
|
</Attribute>
|
||
|
<Attribute>
|
||
|
<AttributeName>System.Configuration.StringValidator(InvalidCharacters=null, MaxLength=2147483647, MinLength=0)</AttributeName>
|
||
|
</Attribute>
|
||
|
</Attributes>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.String</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Docs>
|
||
|
<value>To be added.</value>
|
||
|
<remarks>To be added.</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets or sets the readable type name. </para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="Properties">
|
||
|
<MemberSignature Language="C#" Value="protected override System.Configuration.ConfigurationPropertyCollection Properties { get; }" />
|
||
|
<MemberSignature Language="ILAsm" Value=".property instance class System.Configuration.ConfigurationPropertyCollection Properties" />
|
||
|
<MemberType>Property</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.Configuration.ConfigurationPropertyCollection</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Docs>
|
||
|
<summary>To be added.</summary>
|
||
|
<value>To be added.</value>
|
||
|
<remarks>To be added.</remarks>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="TypeDefID">
|
||
|
<MemberSignature Language="C#" Value="public string TypeDefID { get; set; }" />
|
||
|
<MemberSignature Language="ILAsm" Value=".property instance string TypeDefID" />
|
||
|
<MemberType>Property</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<Attributes>
|
||
|
<Attribute>
|
||
|
<AttributeName>System.Configuration.ConfigurationProperty("typeDefID", IsKey=true, IsRequired=true, Options=System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey)</AttributeName>
|
||
|
</Attribute>
|
||
|
<Attribute>
|
||
|
<AttributeName>System.Configuration.StringValidator(InvalidCharacters=null, MaxLength=2147483647, MinLength=1)</AttributeName>
|
||
|
</Attribute>
|
||
|
</Attributes>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.String</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Docs>
|
||
|
<value>To be added.</value>
|
||
|
<remarks>To be added.</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets or sets a GUID string that identifies the specific UDT type within the registered type library.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="TypeLibID">
|
||
|
<MemberSignature Language="C#" Value="public string TypeLibID { get; set; }" />
|
||
|
<MemberSignature Language="ILAsm" Value=".property instance string TypeLibID" />
|
||
|
<MemberType>Property</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<Attributes>
|
||
|
<Attribute>
|
||
|
<AttributeName>System.Configuration.ConfigurationProperty("typeLibID", IsRequired=true, Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)</AttributeName>
|
||
|
</Attribute>
|
||
|
<Attribute>
|
||
|
<AttributeName>System.Configuration.StringValidator(InvalidCharacters=null, MaxLength=2147483647, MinLength=1)</AttributeName>
|
||
|
</Attribute>
|
||
|
</Attributes>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.String</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Docs>
|
||
|
<value>To be added.</value>
|
||
|
<remarks>To be added.</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets or sets a GUID string that identifies the registered type library that defines the type.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="TypeLibVersion">
|
||
|
<MemberSignature Language="C#" Value="public string TypeLibVersion { get; set; }" />
|
||
|
<MemberSignature Language="ILAsm" Value=".property instance string TypeLibVersion" />
|
||
|
<MemberType>Property</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<Attributes>
|
||
|
<Attribute>
|
||
|
<AttributeName>System.Configuration.ConfigurationProperty("typeLibVersion", IsRequired=true, Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)</AttributeName>
|
||
|
</Attribute>
|
||
|
<Attribute>
|
||
|
<AttributeName>System.Configuration.StringValidator(InvalidCharacters=null, MaxLength=2147483647, MinLength=1)</AttributeName>
|
||
|
</Attribute>
|
||
|
</Attributes>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.String</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Docs>
|
||
|
<value>To be added.</value>
|
||
|
<remarks>To be added.</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets or sets a string that identifies the type library version that defines the type.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
</Members>
|
||
|
</Type>
|