SPUtility.SendRequestAccessToOwner 方法

请注意:此 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
)

参数

  • txtMessageBody
    类型:System.String

    一个字符串,包含要向所有者进行通信的消息。

返回值

类型:System.Boolean
true如果电子邮件发送给所有者 ;否则为false。

另请参阅

引用

SPUtility 类

SPUtility 成员

Microsoft.SharePoint.Utilities 命名空间