Example #1
0
 /// <summary>Initializes a new instance of the  <see cref="T:Microsoft.Xrm.Sdk.Label"></see> class.</summary>
 /// <param name="userLocalizedLabel">Type: <see cref="T:Microsoft.Xrm.Sdk.LocalizedLabel"></see>. The label for the language of the current user.</param>
 /// <param name="labels">Type: <see cref="T:Microsoft.Xrm.Sdk.LocalizedLabel"></see>[]. An array of localized labels.</param>
 public Label(LocalizedLabel userLocalizedLabel, LocalizedLabel[] labels)
 {
     this._userLocLabel = userLocalizedLabel;
     if (labels == null)
     {
         return;
     }
     this._locLabels = new LocalizedLabelCollection((IList <LocalizedLabel>)labels);
 }
Example #2
0
 /// <summary>Initializes a new instance of the  <see cref="T:Microsoft.Xrm.Sdk.Label"></see> class.</summary>
 /// <param name="label">Type: Returns_String. The string for the user localized label.</param>
 /// <param name="languageCode">Type: Returns_Int32. The language code for the label. </param>
 public Label(string label, int languageCode)
 {
     this._locLabels = new LocalizedLabelCollection();
     this._locLabels.Add(new LocalizedLabel(label, languageCode));
 }