Share via


CrmTypes.CreatePickList Method

banner art

Creates an instance of a Picklist attribute.

Syntax

[Visual Basic .NET]
Public Shared Function CreatePickList(
  ByVal value As Integer
) As Picklist

[C#]
public static Picklist CreatePickList(
  int  value
);

[JScript]
public static function CreatePickList(
  value : int
) : Picklist;

Parameters

value

Specifies the value of the attribute.

Return Value

Returns a Picklist type.

Example

[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the Picklist attribute.
Picklist list = CrmSdk.CrmTypes.CreatePickList(1);

See Also

© 2007 Microsoft Corporation. All rights reserved.