﻿<?xml version="1.0" encoding="utf-8"?><Type Name="NeutralResourcesLanguageAttribute" FullName="System.Resources.NeutralResourcesLanguageAttribute"><TypeSignature Maintainer="auto" Language="C#" Value="public sealed class NeutralResourcesLanguageAttribute : Attribute" /><TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit NeutralResourcesLanguageAttribute extends System.Attribute" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.Attribute</BaseTypeName></Base><Interfaces /><Attributes><Attribute><AttributeName>System.AttributeUsage(System.AttributeTargets.Assembly)</AttributeName></Attribute><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><format type="text/html"><h2>Desktop Apps</h2></format><para>In desktop apps, the <see cref="T:System.Resources.NeutralResourcesLanguageAttribute" /> attribute informs the resource manager of an app's default culture and the location of its resources. By default, resources are embedded in the main app assembly, and you can use the attribute as follows. This statement specifies that the English (United States) is the app's default culture. </para><para>code reference: System.Resources.NeutralResourcesLanguageAttribute#1</para><para>You can also use the <see cref="T:System.Resources.NeutralResourcesLanguageAttribute" /> attribute to indicate where <see cref="T:System.Resources.ResourceManager" /> can find the resources of the default culture by providing an <see cref="T:System.Resources.UltimateResourceFallbackLocation" /> enumeration value in the attribute statement. This is most commonly done to indicate that the resources reside in a satellite assembly. For example, the following statement specifies that English (United States) is the app's default or neutral culture and that its resources reside in a satellite assembly. The <see cref="T:System.Resources.ResourceManager" /> object will look for them in a subdirectory named en-US.</para><para>code reference: System.Resources.NeutralResourcesLanguageAttribute#2</para><block subset="none" type="note"><para>We recommend that you always use the <see cref="T:System.Resources.NeutralResourcesLanguageAttribute" /> attribute to define the default culture of your app. </para></block><para>The attribute performs two roles:</para><list type="bullet"><item><para>If the default culture's resources are embedded in the app's main assembly and <see cref="T:System.Resources.ResourceManager" /> has to retrieve resources that belong to the same culture as the default culture, the <see cref="T:System.Resources.ResourceManager" /> automatically uses the resources located in the main assembly instead of searching for a satellite assembly. This bypasses the usual assembly probe, improves lookup performance for the first resource you load, and can reduce your working set. See <format type="text/html"><a href="b224d7c0-35f8-4e82-a705-dd76795e8d16">Packaging and Deploying Resources</a></format> for the process <see cref="T:System.Resources.ResourceManager" /> uses to probe for resource files. </para></item><item><para>If the default culture's resources are located in a satellite assembly rather than in the main app assembly, the <see cref="T:System.Resources.NeutralResourcesLanguageAttribute" /> attribute specifies the culture and the directory from which the runtime can load the resources.</para></item></list><format type="text/html"><h2>win8_appname_long Apps</h2></format><para>In win8_appname_long apps whose resources are loaded and retrieved by using the <see cref="T:System.Resources.ResourceManager" /> class, the <see cref="T:System.Resources.NeutralResourcesLanguageAttribute" /> attribute defines the neutral culture whose resources are used in the event of a failed probe. It does not specify the location of the resources. By default, <see cref="T:System.Resources.ResourceManager" /> uses the app's package resource index (PRI) file to locate the resources of the default culture. The neutral culture that is defined by the <see cref="T:System.Resources.NeutralResourcesLanguageAttribute" /> attribute is added to the end of the UI language list to simulate this effect. </para><para>If you load and retrieve resources by using the wrt <see cref="http://go.microsoft.com/fwlink/p/?LinkId=238182">Windows.ApplicationModel.Resources.ResourceLoader</see> class or the types in the <see cref="http://go.microsoft.com/fwlink/p/?LinkId=238194">Windows.ApplicationModel.Resources.Core</see> namespace, the <see cref="T:System.Resources.NeutralResourcesLanguageAttribute" /> attribute is ignored.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Informs the resource manager of an app's default culture. This class cannot be inherited.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public NeutralResourcesLanguageAttribute (string cultureName);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string cultureName) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue /><Parameters><Parameter Name="cultureName" Type="System.String" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>For a detailed list of culture names, see <see cref="http://go.microsoft.com/fwlink/?LinkId=200048">National Language Support (NLS) API Reference</see> at the Go Global Developer Center. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Resources.NeutralResourcesLanguageAttribute" /> class.</para></summary><param name="cultureName"><attribution license="cc4" from="Microsoft" modified="false" />The name of the culture that the current assembly's neutral resources were written in. </param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public NeutralResourcesLanguageAttribute (string cultureName, System.Resources.UltimateResourceFallbackLocation location);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string cultureName, valuetype System.Resources.UltimateResourceFallbackLocation location) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="cultureName" Type="System.String" /><Parameter Name="location" Type="System.Resources.UltimateResourceFallbackLocation" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="T:System.Resources.NeutralResourcesLanguageAttribute" /> constructor with the <see cref="T:System.Resources.UltimateResourceFallbackLocation" /> enumeration to specify whether the <see cref="T:System.Resources.ResourceManager" /> class is to retrieve neutral fallback resources from the main app assembly (the default), or from a satellite assembly specified by the <see cref="P:System.Globalization.CultureInfo.CurrentUICulture" /> and the <see cref="P:System.Resources.ResourceManager.FallbackLocation" /> properties.</para><para>For a detailed list of culture names, see <see cref="http://go.microsoft.com/fwlink/?LinkId=200048">National Language Support (NLS) API Reference</see> at the Go Global Developer Center. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Resources.NeutralResourcesLanguageAttribute" /> class with the specified ultimate resource fallback location.</para></summary><param name="cultureName"><attribution license="cc4" from="Microsoft" modified="false" />The name of the culture that the current assembly's neutral resources were written in.</param><param name="location"><attribution license="cc4" from="Microsoft" modified="false" />One of the enumeration values that indicates the location from which to retrieve neutral fallback resources.</param></Docs></Member><Member MemberName="CultureName"><MemberSignature Language="C#" Value="public string CultureName { get; }" /><MemberSignature Language="ILAsm" Value=".property instance string CultureName" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'string'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>For a detailed list of culture names, see <see cref="http://go.microsoft.com/fwlink/?LinkId=200048">National Language Support (NLS) API Reference</see> at the Go Global Developer Center. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the culture name.</para></summary></Docs></Member><Member MemberName="Location"><MemberSignature Language="C#" Value="public System.Resources.UltimateResourceFallbackLocation Location { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.Resources.UltimateResourceFallbackLocation Location" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Resources.UltimateResourceFallbackLocation</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the location for the <see cref="T:System.Resources.ResourceManager" /> class to use to retrieve neutral resources by using the <format type="text/html"><a href="B224D7C0-35F8-4E82-A705-DD76795E8D16">resource fallback process</a></format>.</para></summary></Docs></Member></Members></Type>