Partilhar via


SPEventReceiverDefinition.Credential Property

Gets or sets the credential for the SPEventReceiverDefinition object.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property Credential As Integer
    Get
    Set
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As Integer

value = instance.Credential

instance.Credential = value
public int Credential { get; set; }

Property Value

Type: System.Int32
Int32 object that represents the credential.

Remarks

SharePoint Foundation does not perform any authentication on its own. It relies on IIS or ASP.NET Framework to perform authentication.

This property is an optional field within an EventReceiver Element object.

See Also

Reference

SPEventReceiverDefinition Class

SPEventReceiverDefinition Members

Microsoft.SharePoint Namespace

Other Resources

Forms Authentication in SharePoint Products and Technologies (Part 1): Introduction

Integrated Windows Authentication

Securing Clients