请注意:此 API 现在已过时。
向列表或网站的所有者发送电子邮件中的用于访问请求。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function SendRequestAccessToOwner ( _
web As SPWeb, _
objType As SPObjectType, _
objId As String, _
txtMessageBody As String _
) As Boolean
用法
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
)
参数
web
类型:Microsoft.SharePoint.SPWeb一个表示该网站的Microsoft.SharePoint.SPWeb对象。
objType
类型:Microsoft.SharePoint.SPObjectTypeMicrosoft.SharePoint.SPObjectType值,该值指定对象是否为列表或网站。
objId
类型:System.String列表或网站的 ID。
txtMessageBody
类型:System.String一个字符串,包含要向所有者进行通信的消息。
返回值
类型:System.Boolean
true如果电子邮件发送给所有者 ;否则为false。