Click here to Skip to main content
15,885,216 members
Articles / Desktop Programming / XAML

How to use PInvoke in Silverlight 5

Rate me:
Please Sign up or sign in to vote.
4.82/5 (5 votes)
12 Sep 2011CPOL3 min read 44.4K   691   12  
A look at how to get started working with P/Invoke in the Silverlight 5 RC.
  • MikesPInvokeDemo.zip
    • SilverlightApplication26
      • _ReSharper.SilverlightApplication26
        • AspFileDataCache.dat
        • BuildScriptCache
          • .crc
          • .version
          • 5
          • 9
            • 67060119.dat
        • JavaScriptCache
          • .crc
          • .version
          • 5
            • 1a9b8304.dat
        • JbPdbInfo
          • 6e172b1e955a45949b32499f93d60573d1ee374b
          • f48a79bca6ad7daa08d97a38728d3b2a16e208a7
        • ModuleIds.xml
        • MVC
          • .crc
          • .version
        • NamedArguments
          • .crc
          • .version
          • 5
            • 1a9b8304.dat
        • Resources
          • .crc
          • .version
        • SymbolCache.bin
        • TagPrefixes
          • .crc
          • .version
          • 5
            • 1a9b8304.dat
        • TodoCache
          • .crc
          • .version
          • 5
            • 1a9b8304.dat
        • WebSymbols
          • .crc
          • .version
          • 5
            • 1a9b8304.dat
        • WordIndex
          • .crc
          • .version
          • 5
            • 1a9b8304.dat
        • XmlIndex
          • Accessibility.xml
            • 59F683E5.bin
          • Microsoft.Build.Framework.3.5.0.0.Nullness.Generated.xml
            • 154573B0.bin
          • Microsoft.Build.Framework.4.0.0.0.Nullness.Generated.xml
            • 95B01A72.bin
          • Microsoft.Build.Framework.xml
            • 5B4D04B5.bin
          • Microsoft.Build.Tasks.v4.0.4.0.0.0.Nullness.Generated.xml
            • 2B844FB2.bin
          • Microsoft.Build.Tasks.v4.0.xml
            • 390E8A25.bin
          • Microsoft.Build.Utilities.v4.0.4.0.0.0.Nullness.Generated.xml
            • F2C154F2.bin
          • Microsoft.Build.Utilities.v4.0.xml
            • 1A2D939D.bin
          • Microsoft.CSharp.2.0.5.0.Nullness.Generated.xml
            • 3477AF71.bin
          • Microsoft.CSharp.4.0.0.0.Nullness.Generated.xml
            • 57725E92.bin
          • Microsoft.CSharp.xml
            • 4DDA1CCA.bin
          • Microsoft.JScript.10.0.0.0.Nullness.Generated.xml
            • 8DEE3E87.bin
          • Microsoft.JScript.8.0.0.0.Nullness.Generated.xml
            • E4C7217E.bin
          • Microsoft.JScript.xml
            • F74F3354.bin
          • Microsoft.Transactions.Bridge.3.0.0.0.Nullness.Generated.xml
            • FBEBB9D5.bin
          • Microsoft.Transactions.Bridge.4.0.0.0.Nullness.Generated.xml
            • 535C32F2.bin
          • Microsoft.Transactions.Bridge.xml
            • 196DF037.bin
          • Microsoft.VisualBasic.10.0.0.0.Contracts.xml
            • 8B56C4F7.bin
          • Microsoft.VisualBasic.10.0.0.0.Nullness.Generated.xml
            • B11A7C47.bin
          • Microsoft.VisualBasic.10.0.0.0.Pure.xml
            • 117E5644.bin
          • Microsoft.VisualBasic.2.0.5.0.Contracts.xml
            • 07734061.bin
          • Microsoft.VisualBasic.2.0.5.0.Nullness.Generated.xml
            • CD50F311.bin
          • Microsoft.VisualBasic.2.0.5.0.Pure.xml
            • 7839D492.bin
          • Microsoft.VisualBasic.8.0.0.0.Contracts.xml
            • 48DD5AEE.bin
          • Microsoft.VisualBasic.8.0.0.0.Nullness.Generated.xml
            • DE5CE83E.bin
          • Microsoft.VisualBasic.8.0.0.0.Pure.xml
            • 11ED1ABD.bin
          • Microsoft.VisualBasic.Activities.Compiler.10.0.0.0.Nullness.Generated.xml
            • 74445D47.bin
          • Microsoft.VisualBasic.xml
            • EE79FEBF.bin
          • Microsoft.VisualC.xml
            • 90D3ABE6.bin
          • Microsoft.Web.Infrastructure.xml
            • 73FE563B.bin
          • mscorlib.2.0.0.0.Contracts.xml
            • 5B7112C4.bin
          • mscorlib.2.0.0.0.Interfaces.Nullness.Generated.xml
            • 9075ABCC.bin
          • mscorlib.2.0.0.0.Nullness.Generated.xml
            • 84EF6F94.bin
          • mscorlib.2.0.0.0.Pure.xml
            • 1E801D57.bin
          • mscorlib.2.0.5.0.Contracts.xml
            • C330A3C1.bin
          • mscorlib.2.0.5.0.Interfaces.Nullness.Generated.xml
            • 56983509.bin
          • mscorlib.2.0.5.0.Nullness.Generated.xml
            • 63ED2EB1.bin
          • mscorlib.2.0.5.0.Pure.xml
            • 0A810372.bin
          • mscorlib.4.0.0.0.Contracts.xml
            • 07FBF242.bin
          • mscorlib.4.0.0.0.Interfaces.Nullness.Generated.xml
            • 49D94A4A.bin
          • mscorlib.4.0.0.0.Nullness.Generated.xml
            • 83DB9ED2.bin
          • mscorlib.4.0.0.0.Pure.xml
            • CC017511.bin
          • mscorlib.I18n.xml
            • 78F91969.bin
          • mscorlib.Nullness.Manual.xml
            • 4066AAC3.bin
          • mscorlib.ValueFlow.xml
            • 447F1EBE.bin
          • mscorlib.xml
            • 3FA7EE69.bin
            • 743ADB6C.bin
            • D6E16D29.bin
          • SMDiagnostics.3.0.0.0.Nullness.Generated.xml
            • 90006755.bin
          • SMDiagnostics.4.0.0.0.Nullness.Generated.xml
            • E770E072.bin
          • System.2.0.0.0.Contracts.xml
            • 66A824C4.bin
          • System.2.0.0.0.Nullness.Generated.xml
            • DC3AC194.bin
          • System.2.0.0.0.Pure.xml
            • 1483EF57.bin
          • System.2.0.5.0.Contracts.xml
            • CE67B5C1.bin
          • System.2.0.5.0.Nullness.Generated.xml
            • BB3880B1.bin
          • System.2.0.5.0.Pure.xml
            • 0084D572.bin
          • System.4.0.0.0.Contracts.xml
            • 13330442.bin
          • System.4.0.0.0.Nullness.Generated.xml
            • DB26F0D2.bin
          • System.4.0.0.0.Pure.xml
            • C2054711.bin
          • System.Activities.4.0.0.0.Nullness.Generated.xml
            • BD505132.bin
          • System.Activities.DurableInstancing.4.0.0.0.Nullness.Generated.xml
            • 1AE90CF2.bin
          • System.Activities.DurableInstancing.xml
            • 04D57C40.bin
          • System.Activities.xml
            • 33E2C3AB.bin
          • System.ComponentModel.DataAnnotations.2.0.5.0.Nullness.Generated.xml
            • 2D997B91.bin
          • System.ComponentModel.DataAnnotations.3.5.0.0.Nullness.Generated.xml
            • B82FA970.bin
          • System.ComponentModel.DataAnnotations.4.0.0.0.Nullness.Generated.xml
            • B7A20B32.bin
          • System.ComponentModel.DataAnnotations.I18n.xml
            • 44FABD09.bin
          • System.ComponentModel.DataAnnotations.xml
            • B9A8C76A.bin
          • System.Configuration.2.0.0.0.Contracts.xml
            • A5A97A44.bin
          • System.Configuration.2.0.0.0.Nullness.Generated.xml
            • 13D44714.bin
          • System.Configuration.2.0.0.0.Pure.xml
            • FA79D4D7.bin
          • System.Configuration.4.0.0.0.Contracts.xml
            • 523459C2.bin
          • System.Configuration.4.0.0.0.Nullness.Generated.xml
            • 12C07652.bin
          • System.Configuration.4.0.0.0.Pure.xml
            • A7FB2C91.bin
          • System.Configuration.Install.2.0.0.0.Contracts.xml
            • 6810E564.bin
          • System.Configuration.Install.2.0.0.0.Nullness.Generated.xml
            • E1F3E774.bin
          • System.Configuration.Install.4.0.0.0.Contracts.xml
            • 69C465E2.bin
          • System.Configuration.Install.4.0.0.0.Nullness.Generated.xml
            • 9C0AD4B2.bin
          • System.Configuration.Install.xml
            • 7FB1C71F.bin
          • System.Configuration.xml
            • 092A1070.bin
          • System.Core.2.0.5.0.Contracts.xml
            • D5B29261.bin
          • System.Core.2.0.5.0.Nullness.Generated.xml
            • 74EC8511.bin
          • System.Core.2.0.5.0.Pure.xml
            • DB1DE692.bin
          • System.Core.3.5.0.0.Contracts.xml
            • EA155060.bin
          • System.Core.3.5.0.0.Nullness.Generated.xml
            • FF82B2F0.bin
          • System.Core.3.5.0.0.Pure.xml
            • 00A63FF3.bin
          • System.Core.4.0.0.0.Contracts.xml
            • 9A26A5E2.bin
          • System.Core.4.0.0.0.Nullness.Generated.xml
            • FEF514B2.bin
          • System.Core.4.0.0.0.Pure.xml
            • 0304D931.bin
          • System.Core.LinqTunnel.xml
            • 6C84E315.bin
          • System.Core.Nullness.Manual.xml
            • 6880D423.bin
          • System.Core.xml
            • 11686E5B.bin
            • F67C783E.bin
          • System.Data.2.0.0.0.Contracts.xml
            • 2C88F0E4.bin
          • System.Data.2.0.0.0.Nullness.Generated.xml
            • A6F0E2F4.bin
          • System.Data.2.0.0.0.Pure.xml
            • 6AC59FF7.bin
          • System.Data.4.0.0.0.Contracts.xml
            • 2E3C7162.bin
          • System.Data.4.0.0.0.Nullness.Generated.xml
            • 6107D032.bin
          • System.Data.4.0.0.0.Pure.xml
            • 0BED74B1.bin
          • System.Data.DataSetExtensions.3.5.0.0.Nullness.Generated.xml
            • 902F79F0.bin
          • System.Data.DataSetExtensions.4.0.0.0.Nullness.Generated.xml
            • 8FA1DBB2.bin
          • System.Data.DataSetExtensions.I18n.xml
            • 77B72D89.bin
          • System.Data.DataSetExtensions.xml
            • 4A8BA0A6.bin
          • System.Data.Entity.3.5.0.0.Nullness.Generated.xml
            • 041B0B30.bin
          • System.Data.Entity.4.0.0.0.Nullness.Generated.xml
            • 8485B1F2.bin
          • System.Data.Entity.xml
            • 9398E105.bin
          • System.Data.I18n.xml
            • C146C209.bin
          • System.Data.Linq.3.5.0.0.Nullness.Generated.xml
            • F0EB9A50.bin
          • System.Data.Linq.4.0.0.0.Nullness.Generated.xml
            • 1E8B3E92.bin
          • System.Data.Linq.Attributes.xml
            • EC4FEE88.bin
          • System.Data.Linq.I18n.xml
            • 14EC36A9.bin
          • System.Data.Linq.xml
            • B30DAF64.bin
          • System.Data.OracleClient.2.0.0.0.Nullness.Generated.xml
            • DA1ADAF4.bin
          • System.Data.OracleClient.4.0.0.0.Nullness.Generated.xml
            • 9431C832.bin
          • System.Data.OracleClient.xml
            • 27DDCE31.bin
          • System.Data.Services.Client.2.0.5.0.Nullness.Generated.xml
            • 2DC5E411.bin
          • System.Data.Services.Client.3.5.0.0.Nullness.Generated.xml
            • B85C11F0.bin
          • System.Data.Services.Client.4.0.0.0.Nullness.Generated.xml
            • B7CE73B2.bin
          • System.Data.Services.Client.xml
            • 0B993FC7.bin
          • System.Data.Services.Design.3.5.0.0.Nullness.Generated.xml
            • 612B9F70.bin
          • System.Data.Services.Design.4.0.0.0.Nullness.Generated.xml
            • 609E0132.bin
          • System.Data.Services.Design.xml
            • E842CE0C.bin
          • System.Data.SqlXml.2.0.0.0.Nullness.Generated.xml
            • 2B849E74.bin
          • System.Data.SqlXml.4.0.0.0.Nullness.Generated.xml
            • E59B8BB2.bin
          • System.Data.SqlXml.xml
            • 48CF6F29.bin
          • System.Data.xml
            • 7BF6DA70.bin
          • System.Deployment.2.0.0.0.Nullness.Generated.xml
            • CEB490F4.bin
          • System.Deployment.4.0.0.0.Nullness.Generated.xml
            • 88CB7E32.bin
          • System.Deployment.xml
            • CC017739.bin
          • System.Design.2.0.0.0.Nullness.Generated.xml
            • 02690CB4.bin
          • System.Design.4.0.0.0.Nullness.Generated.xml
            • 3D783EF2.bin
          • System.Design.xml
            • 66D504B2.bin
          • System.DirectoryServices.2.0.0.0.Nullness.Generated.xml
            • 1B1757F4.bin
          • System.DirectoryServices.4.0.0.0.Nullness.Generated.xml
            • D52E4532.bin
          • System.DirectoryServices.Protocols.2.0.0.0.Nullness.Generated.xml
            • 322BEE54.bin
          • System.DirectoryServices.Protocols.4.0.0.0.Nullness.Generated.xml
            • 2865DE92.bin
          • System.DirectoryServices.Protocols.xml
            • A1B5E32C.bin
          • System.DirectoryServices.xml
            • 14397267.bin
          • System.Drawing.2.0.0.0.Contracts.xml
            • CAD0C484.bin
          • System.Drawing.2.0.0.0.Nullness.Generated.xml
            • 6F279A54.bin
          • System.Drawing.2.0.0.0.Pure.xml
            • 47C5B997.bin
          • System.Drawing.4.0.0.0.Contracts.xml
            • F7254502.bin
          • System.Drawing.4.0.0.0.Nullness.Generated.xml
            • 65618A92.bin
          • System.Drawing.4.0.0.0.Pure.xml
            • E8ED8F51.bin
          • System.Drawing.Design.2.0.0.0.Nullness.Generated.xml
            • A0A585B4.bin
          • System.Drawing.Design.4.0.0.0.Nullness.Generated.xml
            • DBB4B7F2.bin
          • System.Drawing.Design.xml
            • E232227C.bin
          • System.Drawing.xml
            • 2F425360.bin
          • System.Dynamic.4.0.0.0.Nullness.Generated.xml
            • 3BAFB1F2.bin
          • System.EnterpriseServices.2.0.0.0.Nullness.Generated.xml
            • D70EAD74.bin
          • System.EnterpriseServices.4.0.0.0.Nullness.Generated.xml
            • 91259AB2.bin
          • System.EnterpriseServices.xml
            • 484CBB5B.bin
          • System.I18n.xml
            • 994AEB69.bin
          • System.IdentityModel.3.0.0.0.Nullness.Generated.xml
            • 60B50CD5.bin
          • System.IdentityModel.4.0.0.0.Nullness.Generated.xml
            • B82585F2.bin
          • System.IdentityModel.Selectors.3.0.0.0.Nullness.Generated.xml
            • CA1D1D15.bin
          • System.IdentityModel.Selectors.4.0.0.0.Nullness.Generated.xml
            • A4C3D432.bin
          • System.IdentityModel.Selectors.xml
            • 17C23871.bin
          • System.IdentityModel.xml
            • FCECB5D9.bin
          • System.Management.2.0.0.0.Nullness.Generated.xml
            • 7FEA3174.bin
          • System.Management.4.0.0.0.Nullness.Generated.xml
            • 3A011EB2.bin
          • System.Management.xml
            • 8DDFA253.bin
          • System.Messaging.2.0.0.0.Nullness.Generated.xml
            • 9038B3D4.bin
          • System.Messaging.4.0.0.0.Nullness.Generated.xml
            • 8672A412.bin
          • System.Messaging.xml
            • 4EE26F6E.bin
          • System.Net.2.0.5.0.Nullness.Generated.xml
            • 75A90811.bin
          • System.Net.3.5.0.0.Nullness.Generated.xml
            • 003F35F0.bin
          • System.Net.4.0.0.0.Nullness.Generated.xml
            • FFB197B2.bin
          • System.Net.xml
            • 20B4373A.bin
          • System.Nullness.Manual.xml
            • 8EB13CC3.bin
          • System.Numerics.2.0.5.0.Nullness.Generated.xml
            • 613E6391.bin
          • System.Numerics.4.0.0.0.Nullness.Generated.xml
            • EB46F332.bin
          • System.Numerics.xml
            • F65D6778.bin
          • System.Runtime.Caching.4.0.0.0.Nullness.Generated.xml
            • D9ACBC32.bin
          • System.Runtime.Caching.xml
            • 6E34C19B.bin
          • System.Runtime.DurableInstancing.4.0.0.0.Nullness.Generated.xml
            • 5EE46672.bin
          • System.Runtime.Remoting.2.0.0.0.Nullness.Generated.xml
            • DF5CCDB4.bin
          • System.Runtime.Remoting.4.0.0.0.Nullness.Generated.xml
            • 1A6BFFF2.bin
          • System.Runtime.Remoting.xml
            • 99D48EF3.bin
          • System.Runtime.Serialization.2.0.5.0.Nullness.Generated.xml
            • 21CFDDB1.bin
          • System.Runtime.Serialization.3.0.0.0.Nullness.Generated.xml
            • 9BB31735.bin
          • System.Runtime.Serialization.4.0.0.0.Nullness.Generated.xml
            • 41BE4DD2.bin
          • System.Runtime.Serialization.Attributes.xml
            • 465D3048.bin
          • System.Runtime.Serialization.Formatters.Soap.2.0.0.0.Contracts.xml
            • 8B96B4C4.bin
          • System.Runtime.Serialization.Formatters.Soap.2.0.0.0.Nullness.Generated.xml
            • 5E8B5194.bin
          • System.Runtime.Serialization.Formatters.Soap.4.0.0.0.Contracts.xml
            • 38219442.bin
          • System.Runtime.Serialization.Formatters.Soap.4.0.0.0.Nullness.Generated.xml
            • 5D7780D2.bin
          • System.Runtime.Serialization.Formatters.Soap.xml
            • AC344D82.bin
          • System.Runtime.Serialization.xml
            • 014E8BDC.bin
            • 60E37319.bin
          • System.Security.2.0.0.0.Contracts.xml
            • 132A5264.bin
          • System.Security.2.0.0.0.Nullness.Generated.xml
            • 98F7F474.bin
          • System.Security.2.0.0.0.Pure.xml
            • 65241177.bin
          • System.Security.4.0.0.0.Contracts.xml
            • 14DDD2E2.bin
          • System.Security.4.0.0.0.Nullness.Generated.xml
            • 530EE1B2.bin
          • System.Security.4.0.0.0.Pure.xml
            • 064BE631.bin
          • System.Security.xml
            • 55841E76.bin
          • System.ServiceModel.2.0.5.0.Nullness.Generated.xml
            • 809E16D1.bin
          • System.ServiceModel.3.0.0.0.Nullness.Generated.xml
            • 2FFFEF55.bin
          • System.ServiceModel.4.0.0.0.Nullness.Generated.xml
            • 87706872.bin
          • System.ServiceModel.Activation.4.0.0.0.Nullness.Generated.xml
            • E5B96952.bin
          • System.ServiceModel.Activation.xml
            • B91280C8.bin
          • System.ServiceModel.Activities.4.0.0.0.Nullness.Generated.xml
            • 61810BB2.bin
          • System.ServiceModel.Activities.xml
            • AB91D397.bin
          • System.ServiceModel.Web.2.0.5.0.Nullness.Generated.xml
            • 500E3ED1.bin
          • System.ServiceModel.Web.3.5.0.0.Nullness.Generated.xml
            • D675E9B0.bin
          • System.ServiceModel.Web.4.0.0.0.Nullness.Generated.xml
            • 56E09072.bin
          • System.ServiceModel.Web.xml
            • A6B04269.bin
            • AFCF614C.bin
          • System.ServiceModel.xml
            • 263DB992.bin
          • System.ServiceProcess.2.0.0.0.Nullness.Generated.xml
            • 3D91EDF4.bin
          • System.ServiceProcess.4.0.0.0.Nullness.Generated.xml
            • F7A8DB32.bin
          • System.ServiceProcess.xml
            • 2335E116.bin
          • System.Transactions.2.0.0.0.Nullness.Generated.xml
            • 80962574.bin
          • System.Transactions.4.0.0.0.Nullness.Generated.xml
            • 3AAD12B2.bin
          • System.Transactions.xml
            • A0E212F7.bin
          • System.Web.2.0.0.0.Contracts.xml
            • 110F7884.bin
          • System.Web.2.0.0.0.Nullness.Generated.xml
            • 0930CE54.bin
          • System.Web.2.0.0.0.Pure.xml
            • 8B03ED97.bin
          • System.Web.4.0.0.0.Contracts.xml
            • 3D63F902.bin
          • System.Web.4.0.0.0.Nullness.Generated.xml
            • FF6ABE92.bin
          • System.Web.4.0.0.0.Pure.xml
            • 2C2BC351.bin
          • System.Web.ApplicationServices.4.0.0.0.Nullness.Generated.xml
            • A3C08D52.bin
          • System.Web.ApplicationServices.xml
            • 331D36EA.bin
          • System.Web.Attributes.xml
            • FE2F6E88.bin
          • System.Web.DynamicData.3.5.0.0.Nullness.Generated.xml
            • 75B06AB0.bin
          • System.Web.DynamicData.4.0.0.0.Nullness.Generated.xml
            • F61B1172.bin
          • System.Web.DynamicData.xml
            • DC2CFBFB.bin
          • System.Web.Entity.3.5.0.0.Nullness.Generated.xml
            • 68428AF0.bin
          • System.Web.Entity.4.0.0.0.Nullness.Generated.xml
            • 67B4ECB2.bin
          • System.Web.Entity.xml
            • A8FBC385.bin
          • System.Web.Extensions.3.5.0.0.Nullness.Generated.xml
            • 1E19A230.bin
          • System.Web.Extensions.4.0.0.0.Nullness.Generated.xml
            • 9E8448F2.bin
          • System.Web.Extensions.xml
            • 1594D3F4.bin
          • System.Web.I18n.xml
            • 152BB6A9.bin
          • System.Web.RegularExpressions.xml
            • B6E517C5.bin
          • System.Web.Services.2.0.0.0.Nullness.Generated.xml
            • EF3E8174.bin
          • System.Web.Services.4.0.0.0.Nullness.Generated.xml
            • A9556EB2.bin
          • System.Web.Services.Attributes.xml
            • 6811A868.bin
          • System.Web.Services.xml
            • 057956D0.bin
          • System.Web.WebPages.Deployment.xml
            • EF9CEDAA.bin
          • System.Web.xml
            • C4EB8CF0.bin
          • System.Windows.2.0.5.0.Contracts.xml
            • 5C117661.bin
          • System.Windows.2.0.5.0.Nullness.Generated.xml
            • 6E4BE911.bin
          • System.Windows.2.0.5.0.Pure.xml
            • 8D9E4A92.bin
          • System.Windows.Browser.2.0.5.0.Contracts.xml
            • 5F50B661.bin
          • System.Windows.Browser.2.0.5.0.Nullness.Generated.xml
            • 2CB32911.bin
          • System.Windows.Browser.xml
            • 735002B8.bin
          • System.Windows.Forms.2.0.0.0.Contracts.xml
            • BFF1A7C4.bin
          • System.Windows.Forms.2.0.0.0.Nullness.Generated.xml
            • 1FE7A494.bin
          • System.Windows.Forms.2.0.0.0.Pure.xml
            • 860F9257.bin
          • System.Windows.Forms.4.0.0.0.Contracts.xml
            • 6C7C8742.bin
          • System.Windows.Forms.4.0.0.0.Nullness.Generated.xml
            • 1ED3D3D2.bin
          • System.Windows.Forms.4.0.0.0.Pure.xml
            • 3390EA11.bin
          • System.Windows.Forms.I18n.xml
            • B6E38E69.bin
          • System.Windows.Forms.Manual.xml
            • CD0C231D.bin
          • System.Windows.Forms.xml
            • 628A07B4.bin
          • System.Windows.xml
            • 9594D05A.bin
          • System.Workflow.Activities.3.0.0.0.Nullness.Generated.xml
            • 750110F5.bin
          • System.Workflow.Activities.4.0.0.0.Nullness.Generated.xml
            • 1E188692.bin
          • System.Workflow.Activities.xml
            • FB17DE96.bin
          • System.Workflow.ComponentModel.3.0.0.0.Nullness.Generated.xml
            • 3411F0D5.bin
          • System.Workflow.ComponentModel.4.0.0.0.Nullness.Generated.xml
            • 8B8269F2.bin
          • System.Workflow.ComponentModel.xml
            • 8A0F9E9D.bin
          • System.Workflow.Runtime.3.0.0.0.Nullness.Generated.xml
            • 5539B515.bin
          • System.Workflow.Runtime.4.0.0.0.Nullness.Generated.xml
            • 2FE06C32.bin
          • System.Workflow.Runtime.xml
            • 32431EC1.bin
          • System.WorkflowServices.3.5.0.0.Nullness.Generated.xml
            • BBE9E0F0.bin
          • System.WorkflowServices.4.0.0.0.Nullness.Generated.xml
            • BB5C42B2.bin
          • System.WorkflowServices.xml
            • 8E65A1DD.bin
          • System.Xaml.4.0.0.0.Nullness.Generated.xml
            • B3426CF2.bin
          • System.Xaml.Hosting.4.0.0.0.Nullness.Generated.xml
            • 17305772.bin
          • System.Xaml.Hosting.xml
            • F261D856.bin
          • System.Xaml.xml
            • C4D1BFD8.bin
          • System.Xml.2.0.0.0.Contracts.xml
            • 6BF6D6A4.bin
          • System.Xml.2.0.0.0.Nullness.Generated.xml
            • 6F949FB4.bin
          • System.Xml.2.0.0.0.Pure.xml
            • 8FAAEE37.bin
          • System.Xml.2.0.5.0.Contracts.xml
            • 551647A1.bin
          • System.Xml.2.0.5.0.Nullness.Generated.xml
            • A3D18051.bin
          • System.Xml.2.0.5.0.Pure.xml
            • 0328B352.bin
          • System.Xml.4.0.0.0.Contracts.xml
            • 4322B622.bin
          • System.Xml.4.0.0.0.Nullness.Generated.xml
            • AAA3D1F2.bin
          • System.Xml.4.0.0.0.Pure.xml
            • 3D2C46F1.bin
          • System.Xml.Attributes.xml
            • 4A781A28.bin
          • System.Xml.I18n.xml
            • BFE18249.bin
          • System.Xml.Linq.2.0.5.0.Contracts.xml
            • 176AE361.bin
          • System.Xml.Linq.2.0.5.0.Nullness.Generated.xml
            • 7D8FF611.bin
          • System.Xml.Linq.2.0.5.0.Pure.xml
            • 131F9792.bin
          • System.Xml.Linq.3.5.0.0.Contracts.xml
            • 2BCDA160.bin
          • System.Xml.Linq.3.5.0.0.Nullness.Generated.xml
            • 082623F0.bin
          • System.Xml.Linq.3.5.0.0.Pure.xml
            • 38A7F0F3.bin
          • System.Xml.Linq.4.0.0.0.Contracts.xml
            • DBDEF6E2.bin
          • System.Xml.Linq.4.0.0.0.Nullness.Generated.xml
            • 079885B2.bin
          • System.Xml.Linq.4.0.0.0.Pure.xml
            • 3B068A31.bin
          • System.Xml.Linq.I18n.xml
            • 59625789.bin
          • System.Xml.Linq.xml
            • AD7A27CD.bin
          • System.Xml.xml
            • 48B5EA79.bin
            • 8DAB6A3C.bin
          • System.xml
            • 3B006EAB.bin
            • C3B3EEEE.bin
            • D647FF29.bin
      • SilverlightApplication26.6.0.ReSharper.user
      • SilverlightApplication26.sln
      • SilverlightApplication26.Web
      • SilverlightApplication26
<?xml version="1.0"?>

<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->

<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  <!--
    In the example below, the "SetAttributes" transform will change the value of 
    "connectionString" to use "ReleaseSQLServer" only when the "Match" locator 
    finds an atrribute "name" that has a value of "MyDB".
    
    <connectionStrings>
      <add name="MyDB" 
        connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" 
        xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
    </connectionStrings>
  -->
  <system.web>
    <!--
      In the example below, the "Replace" transform will replace the entire 
      <customErrors> section of your web.config file.
      Note that because there is only one customErrors section under the 
      <system.web> node, there is no need to use the "xdt:Locator" attribute.
      
      <customErrors defaultRedirect="GenericError.htm"
        mode="RemoteOnly" xdt:Transform="Replace">
        <error statusCode="500" redirect="InternalError.htm"/>
      </customErrors>
    -->
  </system.web>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Telerik
United States United States
Michael Crump is a Silverlight MVP and MCPD that has been involved with computers in one way or another for as long as he can remember, but started professionally in 2002. After spending years working as a systems administrator/tech support analyst, Michael branched out and started developing internal utilities that automated repetitive tasks and freed up full-time employees. From there, he was offered a job working at McKesson corporation and has been working with some form of .NET and VB/C# since 2003.

He has worked at Fortune 500 companies where he gained experience in embedded systems design and software development to systems administration and database programming, and everything in between.

His primary focus right now is developing healthcare software solutions using Microsoft .NET technologies. He prefers building infrastructure components, reusable shared libraries and helping companies define, develop and automate process standards and guidelines.

You can read his blog at: MichaelCrump.net or follow him on Twitter at @mbcrump.

Comments and Discussions