GetString() public static method

Provide access to resource string value.
public static GetString ( string name ) : string
name string Received string name.
return string
示例#1
0
 /// <summary>
 /// Looks up the localized name of the specified category.
 /// </summary>
 /// <param name="value">The identifier for the category to look up.</param>
 /// <returns>The localized name of the category, or a null reference
 /// if a localized name does not exist.</returns>
 protected override string GetLocalizedString(string categoryName)
 {
     return(Resources.GetString(categoryName));
 }
示例#2
0
 /// <summary>
 /// Creates the format list for the open file dialog.
 /// </summary>
 /// <param name="ppszFormatList">The format list to return.</param>
 /// <returns>S_OK if method is succeeded.</returns>
 public override int GetFormatList(out string ppszFormatList)
 {
     ppszFormatList = String.Format(CultureInfo.CurrentCulture, Resources.GetString(Resources.NestedProjectFileAssemblyFilter), "\0", "\0");
     return(VSConstants.S_OK);
 }
示例#3
0
 /// <summary>
 /// Explicitly defined default constructor.
 /// </summary>
 public GeneralPropertyPage()
 {
     this.Name = Resources.GetString(Resources.GeneralCaption);
 }