Share via


CrmTypes.CreateKey Method

banner art

Creates an instance of a Key attribute.

Syntax

[Visual Basic .NET]
Public Shared Function CreateKey(
  ByVal value As Guid
) As Key

[C#]
public static Key CreateKey(
  Guid  value
);

[JScript]
public static function CreateKey(
  value : Guid
) : Key;

Parameters

value

Specifies the value of the attribute.

Return Value

Returns a Key type.

Example

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

// Create the Key attribute.
Key key = CrmSdk.CrmTypes.CreateKey(user.UserId);

See Also

© 2007 Microsoft Corporation. All rights reserved.