Click here to Skip to main content
15,886,756 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: About Windows Presentation Foundation. Pin
caiter5-Apr-07 9:37
caiter5-Apr-07 9:37 
AnswerRe: About Windows Presentation Foundation. Pin
caiter5-Apr-07 9:45
caiter5-Apr-07 9:45 
AnswerRe: About Windows Presentation Foundation. Pin
caiter6-Apr-07 5:03
caiter6-Apr-07 5:03 
QuestionIs on client machine user can re-use dlls? Pin
Tariq Younas5-Apr-07 3:59
professionalTariq Younas5-Apr-07 3:59 
AnswerRe: Is on client machine user can re-use dlls? Pin
Krish - KP6-Apr-07 4:53
Krish - KP6-Apr-07 4:53 
QuestionAfter deployment - is on client machine user can re-use dlls? Pin
Tariq Younas5-Apr-07 3:50
Tariq Younas5-Apr-07 3:50 
AnswerRe: After deployment - is on client machine user can re-use dlls? Pin
Pete O'Hanlon5-Apr-07 4:02
mvePete O'Hanlon5-Apr-07 4:02 
QuestionBreak inheritance of file access rules Pin
willi115-Apr-07 2:29
willi115-Apr-07 2:29 
Hi,

can anyone help me?

On a directory structure i want to break the inherited access rules on a folder and apply a new rule. To remove the inherited rule i use the following code snippet.

Dim di As DirectoryInfo
Dim ds As DirectorySecurity
Dim arc As AuthorizationRuleCollection
Dim idx As Integer
Dim fsar As FileSystemAccessRule
Dim strGroup As String

Try
di = New DirectoryInfo(txtDirectoryName.Text)
ds = di.GetAccessControl()
arc = ds.GetAccessRules(True, True, GetType(System.Security.Principal.NTAccount))

For idx = 0 To arc.Count - 1

fsar = arc.Item(idx)
strGroup = fsar.IdentityReference.Value
If strGroup = txtGroup.Text Then
ds.RemoveAccessRuleSpecific(fsar)
di.SetAccessControl(ds)
End If

Next idx
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation + MsgBoxStyle.OkOnly)
End Try


After running this code there is no change. So, can anyone tell what i have to do to break the inheritance.

Thanks
Willi

AnswerRe: Break inheritance of file access rules Pin
Robert Rohde7-Apr-07 22:29
Robert Rohde7-Apr-07 22:29 
AnswerRe: Break inheritance of file access rules Pin
willi1110-Apr-07 1:56
willi1110-Apr-07 1:56 
QuestionWebBrowser flicker when showing an image in compact framework (c#) Pin
vonLochow4-Apr-07 21:56
vonLochow4-Apr-07 21:56 
QuestionMSBuild and Compiling/building Dependencies issue Pin
Mushtaque Nizamani4-Apr-07 21:24
Mushtaque Nizamani4-Apr-07 21:24 
QuestionHow to enable & disable USB ports from .NET applications? Pin
abyclassic4-Apr-07 21:21
abyclassic4-Apr-07 21:21 
QuestionHow to align a particular column of a datagrid.. Pin
Balagurunathan S4-Apr-07 21:14
Balagurunathan S4-Apr-07 21:14 
QuestionHow to sum the values in a datagrid's column.. Pin
Balagurunathan S4-Apr-07 20:38
Balagurunathan S4-Apr-07 20:38 
AnswerRe: How to sum the values in a datagrid's column.. Pin
Sathesh Sakthivel5-Apr-07 7:07
Sathesh Sakthivel5-Apr-07 7:07 
QuestionSupress main report section with subreport Pin
<b<font color="#6EA3C4">MILAN@Cybage4-Apr-07 0:08
<b<font color="#6EA3C4">MILAN@Cybage4-Apr-07 0:08 
AnswerRe: Supress main report section with subreport Pin
Hayder Marzouk5-Apr-07 10:41
Hayder Marzouk5-Apr-07 10:41 
QuestionASP.NET site is not working on Windows server 2003 standard x64 Edition Pin
pubududilena3-Apr-07 4:18
pubududilena3-Apr-07 4:18 
AnswerRe: ASP.NET site is not working on Windows server 2003 standard x64 Edition Pin
kubben3-Apr-07 5:23
kubben3-Apr-07 5:23 
QuestionCrystal Reports Pin
john343-Apr-07 3:17
john343-Apr-07 3:17 
QuestionProblem with listview Control Pin
Nagaraju_Focus3-Apr-07 2:07
Nagaraju_Focus3-Apr-07 2:07 
AnswerRe: Problem with listview Control Pin
Jaiprakash M Bankolli3-Apr-07 22:51
Jaiprakash M Bankolli3-Apr-07 22:51 
QuestionHelp me! Interview Question's here Pin
priya_p2333-Apr-07 1:31
priya_p2333-Apr-07 1:31 
AnswerRe: Help me! Interview Question's here Pin
Pete O'Hanlon3-Apr-07 1:34
mvePete O'Hanlon3-Apr-07 1:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.