Ce sujet n'a pas encore été évalué - Évaluez ce sujet

SPIisSettings, classe (Microsoft.SharePoint.Administration)

Windows SharePoint Services 3
Represents the Internet Information Services (IIS) authentication settings that are shared across all front-end Web servers for a specific URL zone, which can be modified and propagated by re-provisioning the Web application.

Espace de noms : Microsoft.SharePoint.Administration
Assembly : Microsoft.SharePoint (dans microsoft.sharepoint.dll)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
public sealed class SPIisSettings : SPAutoSerializingObject

Use the CreateFromExistingWebSite method to create an SPIisSettings object for a specified IIS Web site, or use the IisSettings property of the SPWebApplication class to return the IIS settings for a particular URL zone. To return the settings for a specific zone, you can specify an SPUrlZone value as an indexer on the IisSettings property.

Setting a property value of the SPIisSettings class, such as AllowAnonymous, does not automatically propagate the new value to all IIS Web sites across all front-end Web servers. The properties are applied to IIS Web sites only after the Web application is re-provisioned.

The following example displays, in a console application, the virtual directory path for the Default URL zone of a specified Web application.

System.Uri uri = new Uri("http://MyServer");
SPWebApplication webApplication = SPWebApplication.Lookup(uri);
SPIisSettings iis = webApplication.IisSettings[SPUrlZone.Default];
Console.Write(iis.Path + " == " + iis.PreferredInstanceId.ToString());
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.
Cela vous a-t-il été utile ?
(1500 caractères restants)