次の方法で共有


SPList.UserResources property

Gets the collection of user-defined localized resources scoped to the list.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property UserResources As SPUserResourceCollection
    Get
'Usage
Dim instance As SPList
Dim value As SPUserResourceCollection

value = instance.UserResources
public SPUserResourceCollection UserResources { get; }

Property value

Type: Microsoft.SharePoint.SPUserResourceCollection
A collection of SPUserResource objects that contain user-defined localizable resources.

Remarks

The collection returned by this property is empty (Count equals 0) if none of the display text associated with the list has been customized. Typically, display text for standard lists such as Announcements and Shared Documents is not customized, and so the UserResources properties for those lists often return empty collections.

If the collection is not empty, then it contains SPUserResource objects that have localizable resources used by the list as well as by fields, content types, and user custom actions associated with the list.

You can call the ExportUserResources method of the SPWeb class to export all user resources for a Web site, including user resources for lists in the site, to a resource file for each of the languages supported by the site. You can then give these files to someone who can translate the strings that they contain. When this work is complete, you can call ImportUserResources to import the translations, making them available to the multilingual user interface.

See also

Reference

SPList class

SPList members

Microsoft.SharePoint namespace

DescriptionResource

TitleResource

SPContentType.DescriptionResource

SPContentType.NameResource

SPField.DescriptionResource

SPField.TitleResource

SPUserCustomAction.CommandUIExtensionResource

SPUserCustomAction.DescriptionResource

SPUserCustomAction.TitleResource

ExportUserResources(CultureInfo, Boolean, Stream)

ImportUserResources(CultureInfo, Stream)

Other resources

Multilingual User Interface (MUI)