MSDN Quota Source Code

xiaoxiao2021-03-06  98

EXAMPLE

.............

[Visual Basic .NET] DIM GLOBALADMIN AS New SPGLOBALADMIN ()

DIM URI AS New System.uri ("http:// Server_name")

DIM Virtual Server AS SPVIRTUALSERVER = GlobalAdmin.openvirtual Server (URI)

Dim SiteCollection As SpSite = Virtual Server.sites ("http:// site_name")

Dim globalconfig as spglobalconfig = GlobalAdmin.config

SiteCollection.quota = GlobalConfig.quotateMplates ("quota_template_name")

[C #] spglobaladmin globaladmin = new spglobaladmin ();

System.uri Uri = New System.uri ("http:// Server_name");

SPVIRTUALSERVER Virtual Server = GlobalAdmin.openvirtual Server (URI);

SPSite SiteCollection = Virtual Server.sites ["http:// site_name"];

SPGLOBALCONFIG GLOBALCONFIG = GlobalAdmin.config;

SiteCollection.quota = GlobalConfig.quotateMplates ["quota_template_name"];

转载请注明原文地址:https://www.9cbs.com/read-104337.html

New Post(0)