Home
english
Home
WebDAV Server
WebDAV Client
WebDAV AJAX
Map Drive
Pricing
News
Contacts
info@ithit.com

IHierarchyItem.UpdateProperties Implementation Example

public virtual WebDAVResponse UpdateProperties(Property[] setProps, Property[] delProps)

{ 

       MultipropResponse resp = new MultipropResponse();

 

       SqlConnection conn = new SqlConnection(connStr);

       SqlTransaction trans = null;

       try

       {

             conn.Open();

             trans = conn.BeginTransaction();

 

             if(setProps != null)

                    foreach(Property p in setProps)

                    {

                           SetProperty(p, trans); // create or update property

                           resp.AddResponses(new PropResponse(p, new OkResponse()));

                    }

       

             if(delProps != null)

                    foreach(Property p in delProps)

                    {

                           RemoveProperty(p.Name, p.Namespace, trans);

                           resp.AddResponses(new PropResponse(p, new OkResponse()));

                    }

       

             UpdateModified(trans);

       

             trans.Commit();

       }

       catch

       {

             if(trans != null) trans.Rollback();

             return new ServerErrorResponse();

       }

       finally

       {

             conn.Close();

       }

   

       return resp;

}


What WebDAV software would you like to have?

Selected Customers:
Country: Norway
DnB NOR Group
Country: Finland
Bank of Finland
Country: United Kingdom
Bechtle Direct
Country: Sweden
BT Industries
Country: USA
California Chamber of Commerce
Country: Denmark
Danfoss Group
Country: Denmark
DFDS
Country: USA
Fluke Networks
Country: USA
HNI Corporation
Country: USA
IHS Inc
Country: USA
LandAmerica Financial Group
Country: Canada
Laurentian University
Country: USA
Microsoft
Country: Israel
RADVISION
Country: Ukraine
Raiffeisen Bank
Country: Netherlands
Sanoma Uitgevers
Country: USA
Siemens
Country: Australia
WorkCover NSW
Country: Ukraine
OTP Bank
Country: USA
Intel Corporation
Country: Austria
Austrian Federal Railways
Home WebDAV Server WebDAV Client WebDAV AJAX Map Drive Pricing News Contacts

Updated: Tuesday, December 05, 2006