سلام بر تمامی برنامه نویسان #C 😉 در این مطلب از وب سایت پروگرم 98 کد حذف یک کلید (Key) از رجیستری با متد DeleteSubKeyTree در #C را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
کد حذف یک کلید (Key) از رجیستری با متد DeleteSubKeyTree در #C :
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;
public class MainClass{
static void Main(string[] args){
string strKey;
string strAns;
Console.WriteLine("Enter the key under HKEY_CURRENT_USER to delete");
strKey = Console.ReadLine();
Console.WriteLine("Do you really mean to delete: " + strKey + " and its settings?");
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;
public class MainClass{
static void Main(string[] args){
string strKey;
string strAns;
Console.WriteLine("Enter the key under HKEY_CURRENT_USER to delete");
strKey = Console.ReadLine();
Console.WriteLine("Do you really mean to delete: " + strKey + " and its settings?");