Share via


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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
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)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
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