SPOutboundMailServiceInstance, classe
TOC
Réduire la table des matières
Développer la table des matières
Le document est archivé et les informations affichées ici peuvent être obsolètes

SPOutboundMailServiceInstance, classe (Microsoft.SharePoint.Administration)

Windows SharePoint Services 3
Respresents an instance of a Simple Mail Transfer Protocol (SMTP) service that is used in Windows SharePoint Services to send outbound mail.

Espace de noms : Microsoft.SharePoint.Administration
Assembly : Microsoft.SharePoint (dans microsoft.sharepoint.dll)

[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
public sealed class SPOutboundMailServiceInstance : SPServiceInstance

Use the OutboundMailServiceInstance property of the SPWebApplication class to return the outbound mail service instance that is used in a Web application.

Use the inherited Instances property of the SPOutboundMailService class to return an SPServiceInstanceDependencyCollection object that represents all instances of the outbound mail service. Use the SPOutboundMailServiceInstanceCollection constructor to return the collection of outbound mail service instances that are running on a specific server.

Use an indexer to return a single outbound mail service instance from the collection. For example, if the collection is assigned to a variable named myOutboundMailServiceInstances, use myOutboundMailServiceInstances[index] in C#, or myOutboundMailServiceInstances(index) in Visual Basic, where index is either the name or the GUID that identifies the service instance in the collection.

Les membres statiques publics de ce type (Shared en Visual Basic) sont sécurisés au niveau des threads. Il n'est pas garanti que les membres d'instance soient sécurisés au niveau des threads.
Afficher:
© 2016 Microsoft