共用方式為


SPUtility.SendRequestAccessToOwner method

NOTE: This API is now obsolete.

將存取要求電子郵件訊息傳送給清單或網站的擁有者。

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

Syntax

'宣告
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
    Type: System.String

    字串,包含其擁有人溝通訊息。

傳回值

Type: System.Boolean
true如果電子郵件傳送給擁有者 ;否則,請false。

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace