System.Configuration.SectionInformation.SetName C# (CSharp) Метод

SetName() приватный Метод

private SetName ( string name ) : void
name string
Результат void
		internal void SetName (string name)
		{
			this.name = name;
		}
	}

Usage Example

Пример #1
0
        private SectionInfo CreateSectionInfo(IConfigSystem system, string configPath, string sectionName, string sectionType)
        {
            var sectionInformation = new SectionInformation
            {
                Type           = sectionType,
                ConfigFilePath = configPath
            };

            sectionInformation.SetName(sectionName);

            var sectionInfo = new SectionInfo(sectionName, sectionInformation)
            {
                StreamName = FileName,
                ConfigHost = system.Host
            };

            return(sectionInfo);
        }