コード例 #1
0
        public async Task CSOMUpdateWebPropertyBag()
        {
            //TestCommon.Instance.Mocking = false;
            TestCommon.ClassicSTS0TestSetup();

            using (var context = await TestCommon.Instance.GetContextAsync(TestCommon.ClassicSTS0TestSite))
            {
                context.Web.AllProperties["TestPnPProperty"] = "TestPropertyValue";
                context.Web.AllProperties.Update();
                Assert.AreEqual("TestPropertyValue", context.Web.AllProperties.GetString("TestPnPProperty", ""));
            }
        }