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"];