Admin.SetNotificationAdminInfoNoResult 方法

设置所需的通知的电子邮件发送的数据。

命名空间:  WebSvcAdmin
程序集:  ProjectServerServices(位于 ProjectServerServices.dll 中)

语法

声明
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Admin/SetNotificationAdminInfoNoResult", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Admin/",  _
    ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Admin/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function SetNotificationAdminInfoNoResult ( _
    WADMIN_ORG_EMAIL_ADDRESS As String, _
    WADMIN_NTFY_FROM_EMAIL As String, _
    WADMIN_NTFY_EMAIL_TRAILER As String, _
    WADMIN_SMTP_SERVER_NAME As String, _
    WADMIN_SMTP_SERVER_PORT As Integer, _
    WADMIN_EMAIL_CHARSET As String _
) As Integer
用法
Dim instance As Admin
Dim WADMIN_ORG_EMAIL_ADDRESS As String
Dim WADMIN_NTFY_FROM_EMAIL As String
Dim WADMIN_NTFY_EMAIL_TRAILER As String
Dim WADMIN_SMTP_SERVER_NAME As String
Dim WADMIN_SMTP_SERVER_PORT As Integer
Dim WADMIN_EMAIL_CHARSET As String
Dim returnValue As Integer

returnValue = instance.SetNotificationAdminInfoNoResult(WADMIN_ORG_EMAIL_ADDRESS, _
    WADMIN_NTFY_FROM_EMAIL, WADMIN_NTFY_EMAIL_TRAILER, _
    WADMIN_SMTP_SERVER_NAME, WADMIN_SMTP_SERVER_PORT, _
    WADMIN_EMAIL_CHARSET)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Admin/SetNotificationAdminInfoNoResult", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Admin/", 
    ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Admin/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int SetNotificationAdminInfoNoResult(
    string WADMIN_ORG_EMAIL_ADDRESS,
    string WADMIN_NTFY_FROM_EMAIL,
    string WADMIN_NTFY_EMAIL_TRAILER,
    string WADMIN_SMTP_SERVER_NAME,
    int WADMIN_SMTP_SERVER_PORT,
    string WADMIN_EMAIL_CHARSET
)

参数

  • WADMIN_ORG_EMAIL_ADDRESS
    类型:System.String

    公司域 (例如,microsoft.com)。

  • WADMIN_NTFY_FROM_EMAIL
    类型:System.String

    从发送通知的电子邮件地址。

  • WADMIN_NTFY_EMAIL_TRAILER
    类型:System.String

    电子邮件页脚 (默认值: Microsoft Office Project Server)。

  • WADMIN_SMTP_SERVER_NAME
    类型:System.String

    SMTP 邮件服务器。

  • WADMIN_SMTP_SERVER_PORT
    类型:System.Int32

    SMTP 邮件服务器的端口 (默认为25)。

  • WADMIN_EMAIL_CHARSET
    类型:System.String

    电子邮件的字符集。

返回值

类型:System.Int32

备注

Project Web App (https://ServerName/ProjectServerName/_layouts/pwa/Admin/Notification.aspx) 中的通知和提醒页使用SetNotificationAdminInfoNoResult方法。

Project Server 权限

权限

说明

ManageNotificationAndReminders

允许用户管理通知操作策略设置。全局权限。

另请参阅

引用

Admin 类

Admin 成员

WebSvcAdmin 命名空间