1 <Type Name="ResponseFileSource" FullName="Mono.Options.ResponseFileSource">
2 <TypeSignature Language="C#" Value="public class ResponseFileSource : Mono.Options.ArgumentSource" />
3 <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ResponseFileSource extends Mono.Options.ArgumentSource" />
5 <AssemblyName>Mono.Options</AssemblyName>
6 <AssemblyVersion>0.2.2.0</AssemblyVersion>
9 <BaseTypeName>Mono.Options.ArgumentSource</BaseTypeName>
14 Inserts the contents of a file during argument processing.
18 <c>ResponseFileSource</c> looks for arguments which start with
19 <c>@</c>, assumes that what follows the <c>@</c> is a valid filename,
20 and reads the contents of the filename as the replacement text.
25 <Member MemberName=".ctor">
26 <MemberSignature Language="C#" Value="public ResponseFileSource ();" />
27 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
28 <MemberType>Constructor</MemberType>
30 <AssemblyVersion>0.2.2.0</AssemblyVersion>
35 Constructs and initializes a
36 <see cref="T:Mono.Options.ResponseFileSource" /> instance.
42 <Member MemberName="Description">
43 <MemberSignature Language="C#" Value="public override string Description { get; }" />
44 <MemberSignature Language="ILAsm" Value=".property instance string Description" />
45 <MemberType>Property</MemberType>
47 <AssemblyVersion>0.2.2.0</AssemblyVersion>
50 <ReturnType>System.String</ReturnType>
54 The description to provide for the argument source within
55 <see cref="M:Mono.Options.OptionSet.WriteOptionDescriptions(System.IO.TextWriter)" />.
58 <c>"Read response file for more options."</c>.
64 <Member MemberName="GetArguments">
65 <MemberSignature Language="C#" Value="public override bool GetArguments (string value, out System.Collections.Generic.IEnumerable<string> replacement);" />
66 <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool GetArguments(string value, class System.Collections.Generic.IEnumerable`1<string> replacement) cil managed" />
67 <MemberType>Method</MemberType>
69 <AssemblyVersion>0.2.2.0</AssemblyVersion>
72 <ReturnType>System.Boolean</ReturnType>
75 <Parameter Name="value" Type="System.String" />
76 <Parameter Name="replacement" Type="System.Collections.Generic.IEnumerable<System.String>&" RefType="out" />
80 A <see cref="T:System.String" /> containing the argument to replace
81 with additional arguments.
83 <param name="replacement">
84 A <see cref="T:System.Collections.Generic.IEnumerable{System.String}" />
85 which will refer to teh replacement arguments if this method returns
86 <see langword="true" />; otherwise, this value should be ignored by
90 Replace the argument <paramref name="value" /> with the contents of
94 If <paramref name="value" /> starts with <c>@</c>, then
95 <paramref name="replacement" /> will contain the parsed contents of
96 the filename resulting from <c><paramref name="value" />.Substring(1)</c>
97 and <see langword="true" /> is returned; otherwise,
98 <see langword="false" /> is returned.
102 <exception cref="T:System.IO.IOException">
103 <paramref name="value" /> starts with <c>@</c> and
104 <c><paramref name="value" />.Substring(1)</c> doees not exist.
106 <altmember cref="M:Mono.Options.ArgumentSource.GetArgumentsFromFile(System.String)" />
109 <Member MemberName="GetNames">
110 <MemberSignature Language="C#" Value="public override string[] GetNames ();" />
111 <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string[] GetNames() cil managed" />
112 <MemberType>Method</MemberType>
114 <AssemblyVersion>0.2.2.0</AssemblyVersion>
117 <ReturnType>System.String[]</ReturnType>
122 The names to provide for the argument source within
123 <see cref="M:Mono.Options.OptionSet.WriteOptionDescriptions(System.IO.TextWriter)" />.
126 A <see cref="T:System.String" /> array containing
127 an element with the value <c>"@file"</c>.