/
MimeTypePropertyAttribute.xml
125 lines (122 loc) · 8.38 KB
/
MimeTypePropertyAttribute.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<Type Name="MimeTypePropertyAttribute" FullName="System.Data.Services.Client.MimeTypePropertyAttribute">
<TypeSignature Language="C#" Value="public sealed class MimeTypePropertyAttribute : Attribute" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit MimeTypePropertyAttribute extends System.Attribute" />
<TypeSignature Language="DocId" Value="T:System.Data.Services.Client.MimeTypePropertyAttribute" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class MimeTypePropertyAttribute
Inherits Attribute" />
<TypeSignature Language="F#" Value="type MimeTypePropertyAttribute = class
 inherit Attribute" />
<TypeSignature Language="C++ CLI" Value="public ref class MimeTypePropertyAttribute sealed : Attribute" />
<AssemblyInfo>
<AssemblyName>System.Data.Services.Client</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Attribute</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]</AttributeName>
<AttributeName Language="F#">[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Annotates a property on a class that has been annotated with the <see cref="T:System.Data.Services.Client.MediaEntryAttribute" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The `MimeTypePropertyAttribute` takes the name of the property that holds the mime type to associate with the property specified in the <xref:System.Data.Services.Client.MediaEntryAttribute>. The property specified is automatically set to the mime type of data when a media resource associated with the media link entry is delay-loaded by the <xref:System.Data.Services.Client.DataServiceContext.LoadProperty%2A> method.
The system also reads the mime type from this property and uses it to set the `Content-Type` header in a POST request for a media link entry. A media link entry is an AtomPub protocol construct for handling binary data and metadata.
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MimeTypePropertyAttribute (string dataPropertyName, string mimeTypePropertyName);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string dataPropertyName, string mimeTypePropertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Services.Client.MimeTypePropertyAttribute.#ctor(System.String,System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (dataPropertyName As String, mimeTypePropertyName As String)" />
<MemberSignature Language="F#" Value="new System.Data.Services.Client.MimeTypePropertyAttribute : string * string -> System.Data.Services.Client.MimeTypePropertyAttribute" Usage="new System.Data.Services.Client.MimeTypePropertyAttribute (dataPropertyName, mimeTypePropertyName)" />
<MemberSignature Language="C++ CLI" Value="public:
 MimeTypePropertyAttribute(System::String ^ dataPropertyName, System::String ^ mimeTypePropertyName);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.Services.Client</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="dataPropertyName" Type="System.String" />
<Parameter Name="mimeTypePropertyName" Type="System.String" />
</Parameters>
<Docs>
<param name="dataPropertyName">A string that contains the name of the new property attribute.</param>
<param name="mimeTypePropertyName">A string that contains the Mime type of the new property attribute.</param>
<summary>Creates a new instance of the <see langword="MimeTypePropertyAttribute" />.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DataPropertyName">
<MemberSignature Language="C#" Value="public string DataPropertyName { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string DataPropertyName" />
<MemberSignature Language="DocId" Value="P:System.Data.Services.Client.MimeTypePropertyAttribute.DataPropertyName" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property DataPropertyName As String" />
<MemberSignature Language="F#" Value="member this.DataPropertyName : string" Usage="System.Data.Services.Client.MimeTypePropertyAttribute.DataPropertyName" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ DataPropertyName { System::String ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.Services.Client</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the name of the <see langword="MimeTypePropertyAttribute" />.</summary>
<value>A string that contains the name of the property attribute.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MimeTypePropertyName">
<MemberSignature Language="C#" Value="public string MimeTypePropertyName { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string MimeTypePropertyName" />
<MemberSignature Language="DocId" Value="P:System.Data.Services.Client.MimeTypePropertyAttribute.MimeTypePropertyName" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property MimeTypePropertyName As String" />
<MemberSignature Language="F#" Value="member this.MimeTypePropertyName : string" Usage="System.Data.Services.Client.MimeTypePropertyAttribute.MimeTypePropertyName" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ MimeTypePropertyName { System::String ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.Services.Client</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the Mime type of the <see langword="MimeTypePropertyAttribute" />.</summary>
<value>A string that contains the Mime type of the property attribute.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>