Click here to Skip to main content
15,915,636 members
Home / Discussions / C#
   

C#

 
QuestionFile path problem (Path contains a space) Pin
bonkers1234-May-09 22:35
bonkers1234-May-09 22:35 
AnswerRe: File path problem (Path contains a space) Pin
Christian Graus4-May-09 22:44
protectorChristian Graus4-May-09 22:44 
GeneralRe: File path problem (Path contains a space) Pin
bonkers1234-May-09 23:15
bonkers1234-May-09 23:15 
GeneralRe: File path problem (Path contains a space) Pin
Christian Graus4-May-09 23:20
protectorChristian Graus4-May-09 23:20 
QuestionShow data of type Varbinary in form of image in GridViewColumn Pin
drcmomo4-May-09 22:24
drcmomo4-May-09 22:24 
AnswerRe: Show data of type Varbinary in form of image in GridViewColumn Pin
Henry Minute5-May-09 1:17
Henry Minute5-May-09 1:17 
GeneralRe: Show data of type Varbinary in form of image in GridViewColumn Pin
drcmomo5-May-09 2:21
drcmomo5-May-09 2:21 
QuestionAzMan Roles and Operations Pin
bonkers1234-May-09 21:55
bonkers1234-May-09 21:55 
Hi,

I'm having trouble to obtain the Roles, and the Operations etc. attached to a specific role.

I have a few operations, and a few roles. I want to Iterate through these roles and obtain the operations linked to these roles.

Now I know how to iterate trough these roles and operations individually ... But I don't know how to obtain the link between the two...

I'm using the AZROLESLib.

string storeAddress = "msxml://" + Environment.CurrentDirectory + "\\AuthorizationStore.xml";
AzAuthorizationStoreClass store;
store = new AzAuthorizationStoreClass();
store.Initialize(0, storeAddress, null);
IAzApplication app = store.OpenApplication("Abatis", null);

      for (int i = 1; i <= app.Roles.Count; i++)
      {
        Microsoft.Interop.Security.AzRoles.IAzRole role =
          (Microsoft.Interop.Security.AzRoles.IAzRole)app.Roles[i];
        String roleName = role.Name;
        
      }

      

      for (int i = 1; i <= app.Operations.Count; i++)
      {
        Microsoft.Interop.Security.AzRoles.IAzOperation operation =
          (Microsoft.Interop.Security.AzRoles.IAzOperation) app.Operations[i];
        try
        {
          
          String val = operation.Name.Replace(" ", string.Empty);
        }
        catch (Exception ex)
        {

        }
      }



I can't find the link ... There is an Operations field if you open the roles as follow:
IAzRole roleVal = app.OpenRole(roleName, null);
roleVal.Operations


But I can't iterate through them.

Any help would be much appreciated!
AnswerRe: AzMan Roles and Operations Pin
Christian Graus4-May-09 21:56
protectorChristian Graus4-May-09 21:56 
GeneralRe: AzMan Roles and Operations [modified] Pin
bonkers1234-May-09 22:29
bonkers1234-May-09 22:29 
GeneralRe: AzMan Roles and Operations Pin
robalexclark5-Jun-09 3:32
robalexclark5-Jun-09 3:32 
GeneralRe: AzMan Roles and Operations Pin
nollusions31-Mar-10 10:33
nollusions31-Mar-10 10:33 
QuestionCan not run a bat file that is registering some dll's on Windows vista through custom installer designed in VS 2005. Pin
Dattatraya K4-May-09 21:50
Dattatraya K4-May-09 21:50 
AnswerRe: Can not run a bat file that is registering some dll's on Windows vista through custom installer designed in VS 2005. Pin
Christian Graus4-May-09 21:57
protectorChristian Graus4-May-09 21:57 
GeneralRe: Can not run a bat file that is registering some dll's on Windows vista through custom installer designed in VS 2005. Pin
Dattatraya K4-May-09 22:05
Dattatraya K4-May-09 22:05 
GeneralRe: Can not run a bat file that is registering some dll's on Windows vista through custom installer designed in VS 2005. Pin
Christian Graus4-May-09 22:07
protectorChristian Graus4-May-09 22:07 
QuestionUser Level restriction------- which method is best xml or dll ?? Pin
King Julien4-May-09 20:50
King Julien4-May-09 20:50 
AnswerRe: User Level restriction------- which method is best xml or dll ?? Pin
Christian Graus4-May-09 21:16
protectorChristian Graus4-May-09 21:16 
GeneralRe: User Level restriction------- which method is best xml or dll ?? Pin
King Julien4-May-09 21:21
King Julien4-May-09 21:21 
GeneralRe: User Level restriction------- which method is best xml or dll ?? Pin
SeMartens4-May-09 21:30
SeMartens4-May-09 21:30 
GeneralRe: User Level restriction------- which method is best xml or dll ?? Pin
King Julien4-May-09 21:40
King Julien4-May-09 21:40 
Questionget set property Pin
lakhwinder.ghuman4-May-09 20:49
lakhwinder.ghuman4-May-09 20:49 
AnswerRe: get set property Pin
King Julien4-May-09 21:01
King Julien4-May-09 21:01 
GeneralRe: get set property Pin
OriginalGriff4-May-09 21:59
mveOriginalGriff4-May-09 21:59 
AnswerRe: get set property Pin
Member 44703545-May-09 0:00
Member 44703545-May-09 0:00 

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.