码迷,mamicode.com
首页 > 其他好文 > 详细

C#中Strings VS. StringBuilder

时间:2014-10-05 13:13:08      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   os   ar   for   sp   

 

1 string mappingHandler = String.Format(@"""[name=‘BTSHTTPReceiveModule‘,path=‘BTSHTTPReceive.dll‘,verb=‘*‘,scriptProcessor=‘%programfiles(x86)%\Microsoft BizTalk Server 2009\HttpReceive64\BTSHTTPReceive.dll‘,resourceType=‘Unspecified‘,modules=‘IsapiModule‘,requireAccess=‘Execute‘]""");
2 StringBuilder sb = new StringBuilder();
3 sb.AppendFormat(@"%SystemRoot%\system32\inetsrv\appcmd.exe set config {0} /section:handlers /+", "\"AppWeekSite/AppWeek\"");
4 sb.Append(mappingHandler);
5 sb.AppendFormat(@" > {0}\AppCmdOutE2EDeploy.txt", ContextBag.TestDir);
6 Trace.WriteLine(sb.ToString(), TestCaseLogCategory.Info);
7 Exec.ExecuteCommand(sb.ToString());

 

Strings @MSDN

http://msdn.microsoft.com/en-us/library/ms228362.aspx

 

StringBuilder Class @MSDN

http://msdn.microsoft.com/en-us/library/system.text.stringbuilder.aspx

 

Using the StringBuilder Class @MSDN

http://msdn.microsoft.com/en-us/library/2839d5h5(v=vs.71).aspx 

 

String Vs StringBuilder (C#) @CodeProject

http://www.codeproject.com/KB/string/string.aspx

C#中Strings VS. StringBuilder

标签:style   blog   http   color   io   os   ar   for   sp   

原文地址:http://www.cnblogs.com/pegasus923/p/1944840.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!