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
web
Type: Microsoft.SharePoint.SPWebA Microsoft.SharePoint.SPWeb object that represents the site.
objType
Type: Microsoft.SharePoint.SPObjectTypeA Microsoft.SharePoint.SPObjectType value that specifies whether the object is a list or a site.
objId
Type: System.StringThe ID of the list or site.
txtMessageBody
Type: System.StringA 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.