SPUtility.SendRequestAccessToOwner method

NOTE: This API is now obsolete.

Sends a request for access in an e-mail message to the owner of the list or site.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function SendRequestAccessToOwner ( _
    web As SPWeb, _
    objType As SPObjectType, _
    objId As String, _
    txtMessageBody As String _
) As Boolean
'Usage
Dim web As SPWeb
Dim objType As SPObjectType
Dim objId As String
Dim txtMessageBody As String
Dim returnValue As Boolean

returnValue = SPUtility.SendRequestAccessToOwner(web, _
    objType, objId, txtMessageBody)
public static bool SendRequestAccessToOwner(
    SPWeb web,
    SPObjectType objType,
    string objId,
    string txtMessageBody
)

Parameters

  • txtMessageBody
    Type: System.String

    A string that contains the message to communicate to the owner.

Return value

Type: System.Boolean
true if the e-mail is sent to the owner; otherwise, false.

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace