1 <?xml version="1.0" encoding="utf-8"?>
2 <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
3 <file datatype="xml" source-language="en" target-language="zh-Hant" original="../Strings.resx">
5 <trans-unit id="AddMissingCustomTypeMarshallerMembers">
6 <source>Add missing custom type marshaller members</source>
7 <target state="translated">新增遺漏的自訂類型排列器成員</target>
10 <trans-unit id="CallerAllocFromManagedMustHaveBufferSizeDescription">
11 <source>When the 'Managed to Unmanaged with Caller-Allocated Buffer' shape is used by providing a 'FromManaged' method that takes a 'Span<T>' on the marshaller type, the type must provide a static 'BufferSize' property to provide the number of elements in the caller-allocated buffer.</source>
12 <target state="translated">當透過提供在封送處理器類型上採用 'Span<T>' 的 'FromManaged' 方法來使用 'Managed to Unmanaged with Caller-Allocated Buffer' 圖形時,該類型必須提供靜態 'BufferSize' 屬性以提供 caller-allocated 緩衝區中的元素數字。</target>
15 <trans-unit id="CallerAllocFromManagedMustHaveBufferSizeMessage">
16 <source>The marshaller type '{0}' must have a static read-only 'int' 'BufferSize' property to specify the size of the caller-allocated buffer because it has a FromManaged method that takes a caller-allocated 'Span<{1}>'</source>
17 <target state="translated">封送處理器類型 '{0}' 必須有靜態唯讀 'int' 'BufferSize' 屬性,以指定 caller-allocated 緩衝區的大小,因為它具有採用 caller-allocated 'Span<{1}>' 的 FromManaged 方法</target>
20 <trans-unit id="CannotForwardToDllImportDescription">
21 <source>The generated 'DllImportAttribute' will not have a value corresponding to '{0}'.</source>
22 <target state="translated">產生的 'DllImportAttribute' 將不會有對應至 '{0}' 的值。</target>
25 <trans-unit id="CannotForwardToDllImportMessage">
26 <source>'{0}' has no equivalent in 'DllImportAttribute' and will not be forwarded</source>
27 <target state="translated">'{0}'在 'DllImportAttribute' 中没有相等項目,將不會轉寄</target>
30 <trans-unit id="CannotForwardToDllImportTitle">
31 <source>Specified 'LibraryImportAttribute' arguments cannot be forwarded to 'DllImportAttribute'</source>
32 <target state="translated">指定的 'LibraryImportAttribute' 自變量無法轉送到 'DllImportAttribute'</target>
35 <trans-unit id="ConfigurationNotSupportedDescription">
36 <source>Source-generated P/Invokes will ignore any configuration that is not supported.</source>
37 <target state="translated">来源產生的 P/Invokes 將會忽略任何不支援的設定。</target>
40 <trans-unit id="ConfigurationNotSupportedMessage">
41 <source>The '{0}' configuration is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular 'DllImport' instead.</source>
42 <target state="translated">來源產生的 P/Invokes 不支援 '{0}' 設定。如果需要指定的設定,請改用一般 'DllImport'。</target>
45 <trans-unit id="ConfigurationNotSupportedMessageMarshallingInfo">
46 <source>The specified marshalling configuration is not supported by source-generated P/Invokes. {0}.</source>
47 <target state="translated">来源產生的 P/Invokes 不支援指定的排列設定。{0}。</target>
50 <trans-unit id="ConfigurationNotSupportedMessageParameter">
51 <source>The specified '{0}' configuration for parameter '{1}' is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular 'DllImport' instead.</source>
52 <target state="translated">來源產生的 P/Invokes 不支援為參數 '{1}' 指定的 '{0}' 設定。如果需要指定的設定,請改用一般 'DllImport'。</target>
55 <trans-unit id="ConfigurationNotSupportedMessageReturn">
56 <source>The specified '{0}' configuration for the return value of method '{1}' is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular 'DllImport' instead.</source>
57 <target state="translated">來源產生的 P/Invokes 不支援為方法 '{1}' 的傳回值指定 '{0}' 設定。如果需要指定的設定,請改用一般 'DllImport'。</target>
60 <trans-unit id="ConfigurationNotSupportedMessageValue">
61 <source>The specified value '{0}' for '{1}' is not supported by source-generated P/Invokes. If the specified value is required, use a regular 'DllImport' instead.</source>
62 <target state="translated">來源產生的 P/Invokes 不支援為 '{1}' 指定的值 '{0}'。如果需要指定的設定,請改用一般 'DllImport'。</target>
65 <trans-unit id="ConfigurationNotSupportedTitle">
66 <source>Specified configuration is not supported by source-generated P/Invokes.</source>
67 <target state="translated">来源產生的 P/Invokes 不支援指定的設定。</target>
70 <trans-unit id="ConvertNoPreserveSigDllImportToGeneratedMayProduceInvalidCode">
71 <source>Automatically converting a P/Invoke with 'PreserveSig' set to 'false' to a source-generated P/Invoke may produce invalid code</source>
72 <target state="translated">將 'PreserveSig' 設為 'false' 的 P/Invoke 自動轉換來源產生的 P/Invoke 可能會產生無效的程式碼</target>
75 <trans-unit id="ConvertToLibraryImport">
76 <source>Convert to 'LibraryImport'</source>
77 <target state="translated">轉換為 'LibraryImport'</target>
80 <trans-unit id="ConvertToLibraryImportAddUnsafe">
81 <source>Convert to 'LibraryImport' and enable unsafe code</source>
82 <target state="translated">轉換為 'LibraryImport',並啟用不安全的程式碼</target>
85 <trans-unit id="ConvertToLibraryImportDescription">
86 <source>Use 'LibraryImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time</source>
87 <target state="translated">使用 'LibraryImportAttribute' 而非 'DllImportAttribute' 在編譯時間產生 P/Invoke 封送處理程式碼</target>
90 <trans-unit id="ConvertToLibraryImportMayRequireCustomMarshalling">
91 <source>Converting this API to 'LibraryImport' will require additional code to provide custom marshallers for some parameters.</source>
92 <target state="translated">將此 API 轉換為 'LibraryImport' 需要額外的程式碼,才能提供某些參數的自訂封送處理器。</target>
95 <trans-unit id="ConvertToLibraryImportMessage">
96 <source>Mark the method '{0}' with 'LibraryImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time</source>
97 <target state="translated">以 'LibraryImportAttribute' 代替 'DllImportAttribute' 標示方法'{0}',以在編譯時間產生 P/Invoke 封送處理程式碼</target>
100 <trans-unit id="ConvertToLibraryImportTitle">
101 <source>Use 'LibraryImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time</source>
102 <target state="translated">使用 'LibraryImportAttribute' 而非 'DllImportAttribute' 在編譯時間產生 P/Invoke 封送處理程式碼</target>
105 <trans-unit id="ConvertToLibraryImportWithSuffix">
106 <source>Convert to 'LibraryImport' with '{0}' suffix</source>
107 <target state="translated">轉換為具有 '{0}'後綴的 'LibraryImport'</target>
110 <trans-unit id="ConvertToLibraryImportWithSuffixAddUnsafe">
111 <source>Convert to 'LibraryImport' with '{0}' suffix and enable unsafe code</source>
112 <target state="translated">轉換為具有 '{0}' 尾碼的 'LibraryImport',並啟用不安全的程式碼</target>
115 <trans-unit id="CustomMarshallerTypeMustHaveRequiredShapeTitle">
116 <source>Marshaller type does not have the required shape</source>
117 <target state="translated">封送處理器類型沒有必要的圖形</target>
120 <trans-unit id="ElementMarshallerCannotBeStatefulDescription">
121 <source>A marshaller for an element scenario cannot be stateful.</source>
122 <target state="translated">元素案例的封送處理器不可為可設定狀態。</target>
125 <trans-unit id="ElementMarshallerCannotBeStatefulMessage">
126 <source>The specified marshaller type '{0}' is a stateful marshaller, but stateful marshallers are not allowed in the provided marshal mode '{1}'</source>
127 <target state="translated">指定的封送處理器類型 '{0}' 是可設定狀態的封送處理器,但是在提供的封送處理模式 '{1}' 中不允許有狀態的封送處理器</target>
130 <trans-unit id="ElementTypesOfReturnTypesMustMatchDescription">
131 <source>The element type of the span returned by the first method must be the same type as the element type of the span returned by the second method.</source>
132 <target state="translated">第一個方法傳回之跨距的元素類型必須與第二個方法傳回之跨距的元素類型相同類型。</target>
135 <trans-unit id="ElementTypesOfReturnTypesMustMatchMessage">
136 <source>The element type of the span returned by '{0}' must be the same type as the element type of the span returned by '{1}'.</source>
137 <target state="translated">'{0}' 傳回之跨距的元素類型必須與 '{1}' 傳回之跨距的元素類型相同類型。</target>
140 <trans-unit id="EntryPointTypeMustBeNonNullDescription">
141 <source>An entry-point type for marshalling a given type must not be 'null'.</source>
142 <target state="translated">封送處理指定類型的進入點類型不得為 'null'。</target>
145 <trans-unit id="EntryPointTypeMustBeNonNullMessage">
146 <source>The entry-point marshaller type for the type '{0}' must be not 'null'</source>
147 <target state="translated">類型 '{0}' 的進入點封送處理器類型不能是 'null'</target>
150 <trans-unit id="FirstParameterMustMatchReturnTypeDescription">
151 <source>The first parameter of the first method must be the same type as the return types of the second method.</source>
152 <target state="translated">第一個方法的第一個參數必須與第二個方法的傳回類型相同類型。</target>
155 <trans-unit id="FirstParameterMustMatchReturnTypeMessage">
156 <source>The first parameter of '{0}' must be the same type as the return type of '{1}'</source>
157 <target state="translated">'{0}' 的第一個參數必須與 '{1}' 的傳回類型相同</target>
160 <trans-unit id="FirstParametersMustMatchDescription">
161 <source>The first parameters of the two methods must be the same type.</source>
162 <target state="translated">兩種方法的第一個參數必須是相同的類型。</target>
165 <trans-unit id="FirstParametersMustMatchMessage">
166 <source>The first parameter of '{0}' and '{1}' must be the same type</source>
167 <target state="translated">'{0}' 與 '{1}' 的第一個參數必須是相同的類型</target>
170 <trans-unit id="FromUnmanagedOverloadsNotSupportedDescription">
171 <source>Overloading the 'FromUnmanaged' method is unuspported as some shapes are unable to distinguish between overloads.</source>
172 <target state="translated">不支援多載 'FromUnmanaged' 方法,因為某些圖形無法區分多載。</target>
175 <trans-unit id="FromUnmanagedOverloadsNotSupportedMessage">
176 <source>The type '{0}' overloads the 'FromUnmanaged' method, which is not supported in custom marshallers</source>
177 <target state="translated">自訂封送處理器中不支援類型 '{0}' 多載 'FromUnmanaged' 方法</target>
180 <trans-unit id="GetPinnableReferenceReturnTypeBlittableDescription">
181 <source>The return type of 'GetPinnableReference' (after accounting for 'ref') must be blittable.</source>
182 <target state="translated">('ref' 帳戶處理後的) 'GetPinnableReference' 傳回類型必須是 blittable。</target>
185 <trans-unit id="GetPinnableReferenceReturnTypeBlittableMessage">
186 <source>The dereferenced type of the return type of the 'GetPinnableReference' method must be blittable</source>
187 <target state="translated">'GetPinnableReference' 方法傳回類型的解除参照類型必須是 blittable</target>
190 <trans-unit id="InvalidAttributedMethodContainingTypeMissingModifiersMessage">
191 <source>Method '{0}' is contained in a type '{1}' that is not marked 'partial'. P/Invoke source generation will ignore method '{0}'.</source>
192 <target state="translated">方法 '{0}' 包含在未標示為 'partial' 的類型'{1}'中。產生 P/Invoke 来源會忽略方法'{0}'。</target>
195 <trans-unit id="InvalidAttributedMethodDescription">
196 <source>Methods marked with 'LibraryImportAttribute' should be 'static', 'partial', and non-generic. P/Invoke source generation will ignore methods that are non-'static', non-'partial', or generic.</source>
197 <target state="translated">以 'LibraryImportAttribute' 標示的方法應該是 'static'、'partial' 和非泛型。產生 P/Invoke 来源會忽略非'static'、non-'partial' 或一般的方法。</target>
200 <trans-unit id="InvalidAttributedMethodSignatureMessage">
201 <source>Method '{0}' should be 'static', 'partial', and non-generic when marked with 'LibraryImportAttribute'. P/Invoke source generation will ignore method '{0}'.</source>
202 <target state="translated">以 'LibraryImportAttribute' 標示時,方法'{0}'應為 'static'、'partial' 和非泛型。產生 P/Invoke 来源會忽略方法'{0}'。</target>
205 <trans-unit id="InvalidCustomMarshallerAttributeUsageTitle">
206 <source>Invalid 'CustomMarshallerAttribute' usage</source>
207 <target state="translated">`CustomMarshallerAttribute` 使用方式無效</target>
210 <trans-unit id="InvalidLibraryImportAttributeUsageTitle">
211 <source>Invalid 'LibraryImportAttribute' usage</source>
212 <target state="translated">'LibraryImportAttribute' 使用方式無效</target>
215 <trans-unit id="InvalidManagedTypeTitle">
216 <source>Specified managed type is invalid</source>
217 <target state="translated">指定的受控類型無效</target>
220 <trans-unit id="InvalidMarshallerTypeTitle">
221 <source>Specified marshaller type is invalid</source>
222 <target state="translated">指定的封送處理器類型無效</target>
225 <trans-unit id="InvalidNativeMarshallingAttributeUsageTitle">
226 <source>Invalid 'NativeMarshallingAttribute' usage</source>
227 <target state="translated">'NativeMarshallingAttribute' 使用方式無效</target>
230 <trans-unit id="InvalidSignaturesInMarshallerShapeTitle">
231 <source>Marshaller type has incompatible method signatures</source>
232 <target state="translated">封送處理器類型有不相容的方法簽章</target>
235 <trans-unit id="InvalidStringMarshallingConfigurationDescription">
236 <source>The configuration of 'StringMarshalling' and 'StringMarshallingCustomType' is invalid.</source>
237 <target state="translated">'StringMarshalling' 和 'StringMarshallingCustomType' 的設定無效。</target>
240 <trans-unit id="InvalidStringMarshallingConfigurationMessage">
241 <source>The configuration of 'StringMarshalling' and 'StringMarshallingCustomType' on method '{0}' is invalid. {1}</source>
242 <target state="translated">方法 '{0}' 上的 'StringMarshalling' 和 'StringMarshallingCustomType' 設定無效。{1}</target>
243 <note>{1} is a message containing additional details about what is not valid</note>
245 <trans-unit id="InvalidStringMarshallingConfigurationMissingCustomType">
246 <source>'StringMarshallingCustomType' must be specified when 'StringMarshalling' is set to 'StringMarshalling.Custom'.</source>
247 <target state="translated">當 'StringMarshalling' 設定為 'StringMarshalling.Custom' 時,必須指定 'StringMarshallingCustomType'。</target>
250 <trans-unit id="InvalidStringMarshallingConfigurationNotCustom">
251 <source>'StringMarshalling' should be set to 'StringMarshalling.Custom' when 'StringMarshallingCustomType' is specified.</source>
252 <target state="translated">指定 'StringMarshallingCustomType' 時,'StringMarshalling' 應設定為 'StringMarshalling.Custom'。</target>
255 <trans-unit id="LinearCollectionElementTypesMustMatchDescription">
256 <source>The element type of the 'ReadOnlySpan' returned by 'GetManagedValuesSource' must be the same as the element type returned by 'GetManagedValuesDestination'.</source>
257 <target state="translated">'GetManagedValuesSource' 傳回的 'ReadOnlySpan' 元素類型必須與 'GetManagedValuesDestination' 傳回的元素類型相同。</target>
260 <trans-unit id="LinearCollectionElementTypesMustMatchMessage">
261 <source>The element type of the 'ReadOnlySpan' returned by 'GetManagedValuesSource' must be the same as the element type returned by 'GetManagedValuesDestination'</source>
262 <target state="translated">'GetManagedValuesSource' 傳回的 'ReadOnlySpan' 元素類型必須與 'GetManagedValuesDestination' 傳回的元素類型相同</target>
265 <trans-unit id="LinearCollectionInCallerAllocatedBufferRequiresSpanConstructorDescription">
266 <source>A 'LinearCollection'-kind native type that supports the 'CallerAllocatedBuffer' feature must provide a three-parameter constructor taking the managed type as the first parameter, a 'Span<byte>' as the second parameter, and the native size of the element as the third parameter</source>
267 <target state="translated">支援 'CallerAllocatedBuffer' 功能的 'LinearCollection'-kind 原生類型必須提供以 Managed 類型作為第一個參數的三個參數建構函式、將 'Span<byte>' 作為第二個參數,以及元素的原生大小作為第三個參數</target>
270 <trans-unit id="LinearCollectionInCallerAllocatedBufferRequiresSpanConstructorMessage">
271 <source>The type '{0}' specifies that it supports 'In' marshalling with the 'CallerAllocatedBuffer' feature for '{1}' but does not provide a three-parameter constructor that takes a '{1}' , a 'Span<byte>', and an 'int'</source>
272 <target state="translated">類型 '{0}' 指定其支援 'In' 封送處理,且'{1}'的 'CallerAllocatedBuffer' 功能,但不提供接受'{1}'、'Span<byte>' 和 'int' 的三個參數建構函示</target>
275 <trans-unit id="LinearCollectionInRequiresCollectionMethodsDescription">
276 <source>A contiguous collection marshaller that supports marshalling from managed to unmanaged must provide a 'GetManagedValuesSource' that returns a 'ReadOnlySpan<>' and a 'GetUnmanagedValuesDestination' method that returns a 'Span<>'.</source>
277 <target state="translated">支援從非受控到受控封送處理的連續集合封送處理程式必須提供傳回 'ReadOnlySpan<>' 的 'GetManagedValuesSource' 和傳回 'Span<>' 的 'GetNativeValuesDestination' 方法。</target>
280 <trans-unit id="LinearCollectionInRequiresCollectionMethodsMessage">
281 <source>The type '{0}' specifies that it supports the '{1}' marshal mode, but it does not provide a 'GetManagedValuesSource' that returns a 'ReadOnlySpan<>' and a 'GetUnmanagedValuesDestination' method that returns a 'Span<>'</source>
282 <target state="translated">類型 '{0}' 指定它支援 '{1}' 封送處理模式,但未提供傳回 'ReadOnlySpan<>' 的 'GetManagedValuesSource' 和傳回 'Span<>' 的 'GetNativeValuesDestination' 方法</target>
285 <trans-unit id="LinearCollectionOutRequiresCollectionMethodsDescription">
286 <source>A contiguous collection marshaller that supports marshalling from unmanaged to managed must provide a 'GetManagedValuesDestination' that takes an 'int' and returns a 'Span<>' and a 'GetUnmanagedValuesSource' method that takes an 'int' and returns a 'ReadOnlySpan<>'.</source>
287 <target state="translated">支援從非受控到受控封送處理的連續集合封送處理程式必須提供接受 'int' 和傳回 'Span<>' 的 'GetManagedValuesDestination',和接受 'int' 和傳回 'ReadOnlySpan<>' 的 'GetNativeValuesSource' 方法。</target>
290 <trans-unit id="LinearCollectionOutRequiresCollectionMethodsMessage">
291 <source>The type '{0}' specifies that it supports the '{1}' marshal mode, but it does not provide a 'GetManagedValuesDestination' that takes an 'int' and returns a 'Span<>' and a 'GetUnmanagedValuesSource' method that takes an 'int' and returns a 'ReadOnlySpan<>'</source>
292 <target state="translated">類型 '{0}' 指定它支援 '{1}' 封送處理模式,但未提供接受 'int' 和傳回 'Span<>' 的 'GetManagedValuesDestination',和接受 'int' 和傳回 'ReadOnlySpan<>' 的 'GetNativeValuesSource' 方法</target>
295 <trans-unit id="ManagedTypeMustBeClosedOrMatchArityDescription">
296 <source>The marshaller type must be a closed generic or have the same number of generic parameters as the managed type so the generator can determine which methods are available on the specific marshaller types.</source>
297 <target state="translated">封送處理器類型必須是封閉的泛型或具有與受控類型相同的泛型參數數目,以便產生器可以判斷哪些方法可用於特定的封送處理器類型。</target>
300 <trans-unit id="ManagedTypeMustBeClosedOrMatchArityMessage">
301 <source>The managed type '{0}' for entry-point marshaller type '{1}' must be a closed generic type, have the same arity as the managed type if it is a value marshaller, or have one additional generic parameter if it is a collection marshaller.</source>
302 <target state="translated">進入點封送處理器類型 '{1}' 的受控類型 '{0}' 必須是封閉的泛型類型、如果是值封送處理器,則其 arity 必須與受控類型相同,如果是集合封送處理器,則必須有另一個泛型參數。</target>
305 <trans-unit id="ManagedTypeMustBeNonNullDescription">
306 <source>The managed type for a custom marshaller must be non-null.</source>
307 <target state="translated">自訂封送處理器的受控類型必須是非 Null。</target>
310 <trans-unit id="ManagedTypeMustBeNonNullMessage">
311 <source>The managed type for the entry-point marshaller type '{0}' must not be 'null'</source>
312 <target state="translated">進入點封送處理器類型 '{0}' 的受控類型不得為 'null'</target>
315 <trans-unit id="MarshallerTypeMustBeClosedOrMatchArityDescription">
316 <source>The marshaller type must be a closed generic or have the same number of generic parameters as the managed type so the emitted code can use a specific instantiation.</source>
317 <target state="translated">封送處理器類型必須是封閉式泛型或具有與受控類型相同的泛型參數數目,因此發出的程式碼可以使用特定的具現化。</target>
320 <trans-unit id="MarshallerTypeMustBeClosedOrMatchArityMessage">
321 <source>The marshaller type '{0}' pointed to by the entry-point marshaller type '{1}' must be a closed generic type or have the same arity as the managed type</source>
322 <target state="translated">進入點封送處理器類型 '{1}' 指向的封送處理器類型 '{0}' 必須是封閉的泛型類型或與受控類型具有相同的 Arity</target>
325 <trans-unit id="MarshallerTypeMustBeNonNullDescription">
326 <source>The 'marshallerType' parameter in the 'System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute' cannot be 'null'.</source>
327 <target state="translated">'System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute' 中的 'marshallerType' 參數不可以是 'null'。</target>
330 <trans-unit id="MarshallerTypeMustBeNonNullMessage">
331 <source>The 'marshallerType' parameter in the 'System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute' cannot be 'null'</source>
332 <target state="translated">'System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute' 中的 'marshallerType' 參數不可以是 'null'</target>
335 <trans-unit id="MarshallerTypeMustBeStaticClassOrStructDescription">
336 <source>A marshaller type must either be a stateless static class or a stateful value type. A non-static class is not allowed.</source>
337 <target state="translated">封送處理程式類型必須是無狀態靜態類型或具狀態的數值類型。不允許非靜態類型。</target>
340 <trans-unit id="MarshallerTypeMustBeStaticClassOrStructMessage">
341 <source>The type '{0}' must be a static class or a value type</source>
342 <target state="translated">類型 '{0}' 必須是靜態類別或數值類型</target>
345 <trans-unit id="MarshallerTypeMustSpecifyManagedTypeDescription">
346 <source>A type with a 'System.Runtime.InteropServices.CustomMarshallerAttribute' must specify a non-'null' managed type</source>
347 <target state="translated">具有 'System.Runtime.InteropServices.CustomMarshallerAttribute' 的類型必須指定非 Null 受控類型</target>
350 <trans-unit id="MarshallerTypeMustSpecifyManagedTypeMessage">
351 <source>The type '{0}' does not specify a managed type in the 'System.Runtime.InteropServices.CustomMarshallerAttribute' applied to the type</source>
352 <target state="translated">類型 '{0}' 未在套用至類型的 'System.Runtime.InteropServices.CustomMarshallerAttribute' 中指定受控類型</target>
355 <trans-unit id="GenericEntryPointMarshallerTypeMustBeClosedOrMatchArityDescription">
356 <source>The marshaller type must be a closed generic or have the same number of generic parameters as the managed type so the emitted code can use a specific instantiation.</source>
357 <target state="translated">封送處理器類型必須是封閉式泛型或具有與受控類型相同的泛型參數數目,因此發出的程式碼可以使用特定的具現化。</target>
360 <trans-unit id="GenericEntryPointMarshallerTypeMustBeClosedOrMatchArityMessage">
361 <source>The marshaller type '{0}' for managed type '{1}' must be a closed generic type, have the same arity as the managed type if it is a value marshaller, or have one additional generic parameter if it is a collection marshaller.</source>
362 <target state="translated">受控類型 '{1}' 的封送處理器類型 '{0}' 必須是封閉的泛型類型、如果是值封送處理器,則其 arity 必須與受控類型相同,如果是集合封送處理器,則必須有另一個泛型參數。</target>
365 <trans-unit id="RequiresAllowUnsafeBlocksDescription">
366 <source>LibraryImportAttribute requires unsafe code. Project must be updated with '<AllowUnsafeBlocks>true</AllowUnsafeBlocks>'.</source>
367 <target state="translated">LibraryImportAttribute 需要不安全的程式碼。專案必須以 '<AllowUnsafeBlocks>true</AllowUnsafeBlocks>' 更新。</target>
370 <trans-unit id="RequiresAllowUnsafeBlocksMessage">
371 <source>LibraryImportAttribute requires unsafe code. Project must be updated with '<AllowUnsafeBlocks>true</AllowUnsafeBlocks>'.</source>
372 <target state="translated">LibraryImportAttribute 需要不安全的程式碼。專案必須以 '<AllowUnsafeBlocks>true</AllowUnsafeBlocks>' 更新。</target>
375 <trans-unit id="RequiresAllowUnsafeBlocksTitle">
376 <source>LibraryImportAttribute requires unsafe code.</source>
377 <target state="translated">LibraryImportAttribute 需要不安全的程式碼。</target>
380 <trans-unit id="ReturnTypeMustBeExpectedTypeDescription">
381 <source>The return type the two method must be the expected type.</source>
382 <target state="translated">兩種方法的傳回類型必須是預期的類型。</target>
385 <trans-unit id="ReturnTypeMustBeExpectedTypeMessage">
386 <source>The return type of '{0}' must be '{1}'</source>
387 <target state="translated">'{0}' 的傳回類型必須為 '{1}'</target>
390 <trans-unit id="ReturnTypesMustMatchDescription">
391 <source>The return types of the two methods must be the same type.</source>
392 <target state="translated">兩種方法的傳回類型必須是相同的類型。</target>
395 <trans-unit id="ReturnTypesMustMatchMessage">
396 <source>The return type of '{0}' must be the same type as the return type of '{1}'</source>
397 <target state="translated">'{0}' 的傳回類型必須與 '{1}' 的傳回類型相同</target>
400 <trans-unit id="StatefulMarshallerRequiresFreeDescription">
401 <source>A stateful marshaller must have a zero-parameter void-returning instance method named 'Free'.</source>
402 <target state="translated">具狀態的封送處理常式必須有名稱為 'Free' 的零參數無效傳回執行個體方法。</target>
405 <trans-unit id="StatefulMarshallerRequiresFreeMessage">
406 <source>The type '{0}' is a stateful marshaller and does not have a zero-parameter void-returning instance method named 'Free'</source>
407 <target state="translated">類型 '{0}' 是具狀態的封送處理器,且沒有名為 'Free' 的零參數無效傳回執行個體方法</target>
410 <trans-unit id="StatefulMarshallerRequiresFromManagedDescription">
411 <source>A stateful marshaller that supports marshalling from managed to unmanaged must provide a 'FromManaged' instance method that takes the managed value as a parameter and returns 'void'.</source>
412 <target state="translated">支援從受控到未受控封送處理的具狀態封送處理器必須提供 'FromManaged' 執行個體方法,該方法將受控值作為參數並傳回 'void'。</target>
415 <trans-unit id="StatefulMarshallerRequiresFromManagedMessage">
416 <source>The type '{0}' specifies that it supports the '{1}' marshal mode for '{2}' but it does not provide a one-parameter instance method named 'FromManaged' that takes a '{2}' as a parameter and returns 'void'</source>
417 <target state="translated">類型 '{0}' 指定它支援 '{1}' 的 '{2}' 封送處理模式,但它不提供名為 'FromManaged' 的單一參數執行個體方法,該方法將 '{2}' 值作為參數並傳回 'void'</target>
420 <trans-unit id="StatefulMarshallerRequiresFromUnmanagedDescription">
421 <source>A stateful marshaller that supports marshalling from unmanaged to managed must provide a 'FromUnmanaged' instance method that takes the unmanaged value as a parameter and returns 'void'.</source>
422 <target state="translated">支援從未受控到受控封送處理的具狀態封送處理器必須提供 'FromUnmanaged' 執行個體方法,該方法將未受控值作為參數並傳回 'void'。</target>
425 <trans-unit id="StatefulMarshallerRequiresFromUnmanagedMessage">
426 <source>The type '{0}' specifies that it supports the '{1}' marshal mode for '{2}' but it does not provide a one-parameter instance method named 'FromUnmanaged' that takes the 'unmanaged' value as a parameter and returns 'void'</source>
427 <target state="translated">類型 '{0}' 指定它支援 '{1}' 的 '{2}' 封送處理模式,但它不提供名為 'FromUnmanaged' 的單一參數執行個體方法,該方法將 'unmanaged' 值作為參數並傳回 'void'</target>
430 <trans-unit id="StatefulMarshallerRequiresToManagedDescription">
431 <source>A stateful marshaller that supports marshalling from unmanaged to managed must provide a 'ToManaged' instance method that takes no parameters and returns the managed type.</source>
432 <target state="translated">支援從未受控到受控封送處理的具狀態封送處理器必須提供 'ToManaged' 執行個體方法,該方法沒有參數並傳回受控類型。</target>
435 <trans-unit id="StatefulMarshallerRequiresToManagedMessage">
436 <source>The type '{0}' specifies that it supports the '{1}' marshal mode for '{2}' but it does not provide a zero-parameter instance method named 'ToManaged' that returns '{2}'</source>
437 <target state="translated">類型 '{0}' 指定它支援 '{1}' 的 '{2}' 封送處理模式,但不提供名為 'ToManaged' 的零參數執行個體方法,該方法會傳回 '{2}'</target>
440 <trans-unit id="StatefulMarshallerRequiresToUnmanagedDescription">
441 <source>A stateful marshaller that supports marshalling from managed to unmanaged must provide a 'ToUnmanaged' instance method that takes no parameters and returns the 'unmanaged' type.</source>
442 <target state="translated">支援從受控到未受控封送處理的具狀態封送處理器必須提供 'ToUnmanaged' 執行個體方法,該方法沒有參數並傳回 'unmanaged' 類型。</target>
445 <trans-unit id="StatefulMarshallerRequiresToUnmanagedMessage">
446 <source>The type '{0}' specifies that it supports the '{1}' marshal mode for '{2}' but it does not provide a zero-parameter instance method named 'ToUnmanaged' that returns the 'unmanaged' type for the marshaller</source>
447 <target state="translated">類型 '{0}' 指定它支援 '{1}' 的 '{2}' 封送處理模式,但不提供名為 'ToUnmanaged' 的零參數執行個體方法,該方法會傳回封送處理器的 'unmanaged' 類型</target>
450 <trans-unit id="StatelessLinearCollectionCallerAllocFromManagedMustHaveBufferSizeDescription">
451 <source>When the 'Managed to Unmanaged with Caller-Allocated Buffer' shape is used by providing an 'AllocateContainerForUnmanagedElements' method that takes a 'Span<T>' on the marshaller type, the type must provide a static 'BufferSize' property to provide the number of elements in the caller-allocated buffer.</source>
452 <target state="translated">當透過提供在封送處理程式類型上採用 'Span<T>' 的 'AllocateContainerForUnmanagedElements' 方法來使用 'Managed to Unmanaged with Caller-Allocated Buffer' 圖形時,該類型必須提供靜態 'BufferSize' 屬性以提供 caller-allocated 緩衝區中的元素數目。</target>
455 <trans-unit id="StatelessLinearCollectionCallerAllocFromManagedMustHaveBufferSizeMessage">
456 <source>The marshaller type '{0}' must have a static read-only 'int' 'BufferSize' property to specify the size of the caller-allocated buffer because it has an 'AllocateContainerForUnmanagedElements' method that takes a caller-allocated 'Span<{1}>'</source>
457 <target state="translated">封送處理程式類型 '{0}' 必須有靜態唯讀 'int' 'BufferSize' 屬性,以指定 caller-allocated 緩衝區的大小,因為它具有採用 caller-allocated 'Span<{1}>' 的 'AllocateContainerForUnmanagedElements' 方法</target>
460 <trans-unit id="StatelessLinearCollectionInRequiresCollectionMethodsDescription">
461 <source>A contiguous collection marshaller that supports marshalling from managed to unmanaged must provide a 'GetManagedValuesSource' that takes the managed value as a parameter and returns a 'ReadOnlySpan<>' and a 'GetUnmanagedValuesDestination' method that takes the unmanaged value as a parameter and returns a 'Span<>'</source>
462 <target state="translated">支援從非受控到受控封送處理的連續集合封送處理程式必須提供接受受控值為參數並傳回 'ReadOnlySpan<>' 的 'GetManagedValuesDestination',和接受非受控值為參數並傳回 'Span<>' 的 'GetUnmanagedValuesSource' 方法。</target>
465 <trans-unit id="StatelessLinearCollectionInRequiresCollectionMethodsMessage">
466 <source>The type '{0}' specifies that it supports the '{1}' marshal mode, but it does not provide a 'GetManagedValuesSource' that takes '{2}' as a parameter and returns a 'ReadOnlySpan<>' and a 'GetUnmanagedValuesDestination' method that takes the unmanaged value as a parameter and returns a 'Span<>'</source>
467 <target state="translated">類型 '{0}' 指定它支援 '{1}' 封送處理模式,但未提供接受 '{2}' 為參數並傳回 'ReadOnlySpan<>' 的 'GetManagedValuesSource' ,和接受未受控值為參數並傳回 'Span<>' 的 'GetUnmanagedValuesDestination' 方法</target>
470 <trans-unit id="StatelessLinearCollectionOutRequiresCollectionMethodsDescription">
471 <source>A contiguous collection marshaller that supports marshalling from unmanaged to managed must provide a 'GetManagedValuesDestination' that takes the managed value and returns a 'Span<>' and a 'GetUnmanagedValuesSource' method that takes the unmanaged value and an 'int' and returns a 'ReadOnlySpan<>'.</source>
472 <target state="translated">支援從非受控到受控封送處理的連續集合封送處理程式必須提供接受受控值並傳回 'Span<>' 的 'GetManagedValuesDestination',和接受非受控值及 'int' 並傳回 'ReadOnlySpan<>' 的 'GetUnmanagedValuesSource' 方法。</target>
475 <trans-unit id="StatelessLinearCollectionOutRequiresCollectionMethodsMessage">
476 <source>The type '{0}' specifies that it supports the '{1}' marshal mode, but it does not provide a 'GetManagedValuesDestination' that takes '{2}' and returns a 'Span<>' and a 'GetUnmanagedValuesSource' method that takes the unmanaged value and an 'int' and returns a 'ReadOnlySpan<>'</source>
477 <target state="translated">類型 '{0}' 指定它支援 '{1}' 封送處理模式,但未提供接受 '{2}' 和傳回 'Span<>' 的 'GetManagedValuesDestination',和接受未受控值和傳回 'ReadOnlySpan<>' 的 'GetUnmanagedValuesSource' 方法</target>
480 <trans-unit id="StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsDescription">
481 <source>A stateless contiguous collection marshaller that supports marshalling from managed to unmanaged must provide an 'AllocateContainerForManagedElements' method taking the unmanaged type as the first parameter and the number of elements as an 'int' parameter</source>
482 <target state="translated">支援從受控到未受控封送處理的無狀態連續集合封送處理程式必須提供 'AllocateContainerForManagedElements' 方法,將未受控的類型作為第一個參數,以及元素數目作為 'int' 參數</target>
485 <trans-unit id="StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsMessage">
486 <source>The type '{0}' specifies that it supports the '{1}' marshal mode for '{2}' but does not provide a two-parameter 'AllocateContainerForManagedElements' method that takes the unmanaged type as the first parameter and an 'int' as the second parameter</source>
487 <target state="translated">類型 '{0}' 指定它支援 '{2}' 的 '{1}' 封送處理模式,但不提供接受未受控類型作爲第一個參數和 'int' 作為第二個參數的雙參數 'AllocateContainerForManagedElements' 方法</target>
490 <trans-unit id="StatelessLinearCollectionRequiresTwoParameterAllocateContainerForUnmanagedElementsDescription">
491 <source>A stateless contiguous collection marshaller that supports marshalling from managed to unmanaged must provide an 'AllocateContainerForUnmanagedElements' method taking the managed type as the first parameter and providing the number of elements as an 'out int' parameter</source>
492 <target state="translated">支援從受控到未受控封送處理的無狀態連續集合封送處理程式必須提供 'AllocateContainerForManagedElements' 方法,將受控類型作為第一個參數,以及提供元素數目作為 'out int' 參數</target>
495 <trans-unit id="StatelessLinearCollectionRequiresTwoParameterAllocateContainerForUnmanagedElementsMessage">
496 <source>The type '{0}' specifies that it supports the '{1}' marshal mode for '{2}' but does not provide a two-parameter 'AllocateContainerForUnmanagedElements' method that takes a '{2}' as the first parameter and an 'out int' as the second parameter</source>
497 <target state="translated">類型 '{0}' 指定它支援 '{2}' 的 '{1}' 封送處理模式,但不提供接受 '{2}' 作爲第一個參數和 'out int' 作為第二個參數的雙參數 'AllocateContainerForUnmanagedElements' 方法</target>
500 <trans-unit id="StatelessRequiresConvertToManagedDescription">
501 <source>A stateless value marshaller that supports marshalling from unmanaged to managed must provide a 'ConvertToManaged' method that takes the unmanaged type as a parameter and returns the the managed type.</source>
502 <target state="translated">支援從受控到未受控封送處理的無狀態值封送處理程式必須提供接受未受控類型作為參數,並傳回受控類型的 'ConvertToManaged' 方法。</target>
505 <trans-unit id="StatelessRequiresConvertToManagedMessage">
506 <source>The type '{0}' specifies it supports the '{1}' marshal mode, but it does not provide a 'ConvertToManaged' method that takes the unmanaged type as a parameter and returns '{2}'</source>
507 <target state="translated">類型 '{0}' 指定它支援 '{1}' 封送處理模式,但未提供將未受控的類型當做參數並傳回 '{2}' 的 'ConvertToManaged' 方法</target>
510 <trans-unit id="StatelessValueInRequiresConvertToUnmanagedDescription">
511 <source>A stateless value marshaller that supports marshalling from managed to unmanaged must provide a one-parameter 'ConvertToUnmanaged' method that takes the managed value as the parameter and returns a value of the 'unmanaged' type.</source>
512 <target state="translated">支援從受控到未受控封送處理的無狀態值封送處理程式必須提供單一參數 'ConvertToUnmanaged' 方法,將受控值作為參數,並傳回 'unmanaged' 類型的值。</target>
515 <trans-unit id="StatelessValueInRequiresConvertToUnmanagedMessage">
516 <source>The type '{0}' specifies that it supports the '{1}' marshal mode for '{2}' but does not provide a one-parameter 'ConvertToUnmanaged' method that takes a '{2}' as a parameter and returns a value of an 'unmanaged' type</source>
517 <target state="translated">類型 '{0}' 指定它支援 '{2}' 的 '{1}' 封送處理模式,但不提供以 '{2}' 為參數的單一參數 'ConvertToUnmanaged' 方法,並傳回 'unmanaged' 類型的值</target>
520 <trans-unit id="ToUnmanagedFromManagedTypesMustMatchDescription">
521 <source>The return type of 'ConvertToUnmanaged' and the parameter type of 'ConvertToManaged' must be the same.</source>
522 <target state="translated">'ConvertToUnmanaged' 的傳回類型與 'ConvertToManaged' 的參數類型必須相同。</target>
525 <trans-unit id="ToUnmanagedFromManagedTypesMustMatchMessage">
526 <source>The return type of 'ConvertToUnmanaged' and the parameter type of 'ConvertToManaged' must be the same</source>
527 <target state="translated">'ConvertToUnmanaged' 的傳回類型與 'ConvertToManaged' 的參數類型必須相同</target>
530 <trans-unit id="TypeMustBeUnmanagedDescription">
531 <source>The unmanaged type for a custom marshaller must be a C# unmanaged type.</source>
532 <target state="translated">自訂封送處理程式的未受控類型必須是 C# 未受控類型。</target>
535 <trans-unit id="TypeMustBeUnmanagedMessage">
536 <source>The return type of '{0}' must be unmanaged</source>
537 <target state="translated">'{0}' 的傳回類型必須為不受控</target>
540 <trans-unit id="TypeMustHaveExplicitCastFromVoidPointerDescription">
541 <source>'void*' must be castable to the type so the pinned result of the static 'GetPinnableReference' method can be passed to the native context after being pinned.</source>
542 <target state="translated">'void*' 必須可轉換為類型,以致靜態 'GetPinnableReference' 方法的釘選結果可在釘選之後傳遞至原生內容。</target>
545 <trans-unit id="TypeMustHaveExplicitCastFromVoidPointerMessage">
546 <source>'void*' must be castable to the type '{0}' because the managed type '{1}' has a static 'GetPinnableReference' method</source>
547 <target state="translated">'void*' 必須轉換為類型 '{0}',因為受控類型 '{1}' 具有靜態 'GetPinnableReference' 方法</target>
550 <trans-unit id="EntryPointTypeMustHaveCustomMarshallerAttributeWithMatchingManagedTypeDescription">
551 <source>An entry-point type for marshalling a given type must have a 'System.Runtime.InteropServices.CustomMarshallerAttribute' that specifies this type as the managed type.</source>
552 <target state="translated">指定類型的封送處理進入點類型必須有 'System.Runtime.InteropServices.CustomMarshallerAttribute',指定此類型為受控類型。</target>
555 <trans-unit id="EntryPointTypeMustHaveCustomMarshallerAttributeWithMatchingManagedTypeMessage">
556 <source>The entry-point marshaller type '{0}' for the type '{1}' must be a type with at least one 'System.Runtime.InteropServices.CustomMarshallerAttribute' that specifies this type as the managed type</source>
557 <target state="translated">類型 '{1}' 的進入點封送處理器類型 '{0}' 必須是具有至少一個 'System.Runtime.InteropServices.CustomMarshallerAttribute' 的類型,指定此類型為受控類型</target>
560 <trans-unit id="OutRequiresToManagedDescription">
561 <source>A 'Value' or 'LinearCollection'-kind native type that supports marshalling in the 'Out' direction must provide a 'ToManaged' method that returns the managed type.</source>
562 <target state="translated">支援在 'Out' 方向排列的 'Value' 或 'LinearCollection'-kind 原生類型必須提供傳回 Managed 類型的 'ToManaged' 方法。</target>
565 <trans-unit id="OutRequiresToManagedMessage">
566 <source>The type '{0}' specifies it supports marshalling in the 'Out' direction, but it does not provide a 'ToManaged' method that returns the managed type</source>
567 <target state="translated">類型 '{0}' 指定它支援以 'Out' 方向排列,但未提供傳回受管理類型的 'ToManaged' 方法</target>
570 <trans-unit id="ToFromUnmanagedTypesMustMatchDescription">
571 <source>The return type of 'ToUnmanaged' and the parameter type of 'FromUnmanaged' must be the same.</source>
572 <target state="translated">'ToUnmanaged' 的傳回類型與 'FromUnmanaged' 的參數類型必須相同。</target>
575 <trans-unit id="ToFromUnmanagedTypesMustMatchMessage">
576 <source>The return type of 'ToUnmanaged' and the parameter type of 'FromUnmanaged' must be the same</source>
577 <target state="translated">'ToUnmanaged' 的傳回類型與 'FromUnmanaged' 的參數類型必須相同</target>
580 <trans-unit id="TypeNotSupportedDescription">
581 <source>For types that are not supported by source-generated P/Invokes, the resulting P/Invoke will rely on the underlying runtime to marshal the specified type.</source>
582 <target state="translated">對於來源產生的 P/Invokes 不支援的類型,產生的 P/Invoke 將依賴基礎運行時間來封送指定的類型。</target>
585 <trans-unit id="TypeNotSupportedMessageParameter">
586 <source>The type '{0}' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter '{1}'.</source>
587 <target state="translated">来源產生的 P/Invokes 不支援類型 '{0}'。產生的来源將不會處理參數 '{1}' 的排列。</target>
590 <trans-unit id="TypeNotSupportedMessageParameterWithDetails">
591 <source>{0} The generated source will not handle marshalling of parameter '{1}'.</source>
592 <target state="translated">{0} 產生的来源将不會處理參數 '{1}' 的排列。</target>
593 <note>{0} is a message containing additional details about what is not supported
594 {1} is the name of the parameter</note>
596 <trans-unit id="TypeNotSupportedMessageReturn">
597 <source>The type '{0}' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of the return value of method '{1}'.</source>
598 <target state="translated">来源產生的 P/Invokes 不支援類型 '{0}'。產生的來源將不會處理方法 '{1}' 的傳回值排列。</target>
601 <trans-unit id="TypeNotSupportedMessageReturnWithDetails">
602 <source>{0} The generated source will not handle marshalling of the return value of method '{1}'.</source>
603 <target state="translated">{0} 產生的來源將不會處理方法 '{1}' 之傳回值的排列。</target>
604 <note>{0} is a message containing additional details about what is not supported
605 {1} is the name of the method</note>
607 <trans-unit id="TypeNotSupportedTitle">
608 <source>Specified type is not supported by source-generated P/Invokes</source>
609 <target state="translated">来源產生的 P/Invokes 不支援指定的類型。</target>
612 <trans-unit id="ValueInCallerAllocatedBufferRequiresSpanConstructorDescription">
613 <source>A 'Value'-kind native type that supports the 'CallerAllocatedBuffer' feature must provide a two-parameter constructor taking the managed type and a 'Span' of an 'unmanaged' type as parameters</source>
614 <target state="translated">支援 'CallerAllocatedBuffer' 功能的 'Value'-kind 原生類型必須提供接受受管理類型的雙參數建構函示,以及以 'unmanaged' 類型的 'Span' 作為參數</target>
617 <trans-unit id="ValueInCallerAllocatedBufferRequiresSpanConstructorMessage">
618 <source>The type '{0}' specifies that it supports 'In' marshalling with the 'CallerAllocatedBuffer' feature for '{1}' but does not provide a two-parameter constructor that takes a '{1}' and 'Span' of an 'unmanaged' type as parameters</source>
619 <target state="translated">類型 '{0}' 指定其支援使用 'CallerAllocatedBuffer' 功能為 '{1}' 的 'In' 封送處理,但不提供接受 '{1}' 的二參數構建函式,以及以 'unmanaged' 類型的 'Span' 作為參數</target>
622 <trans-unit id="ValueInRequiresOneParameterConstructorDescription">
623 <source>A 'Value'-kind native type must provide a one-parameter constructor taking the managed type as a parameter</source>
624 <target state="translated">'Value'-kind 原生類型必須提供以 Managed 類型作為參數的單一參數構建函式</target>
627 <trans-unit id="ValueInRequiresOneParameterConstructorMessage">
628 <source>The type '{0}' specifies that it supports 'In' marshalling of '{1}' but does not provide a one-parameter constructor that takes a '{1}' as a parameter</source>
629 <target state="translated">類型 '{0}'指定它支援 'In' 封送'{1}',但不提供以'{1}'作為參數的單一參數建構函式</target>